Merge pull request #811 from maurodibert/patch-29

Update article.md
This commit is contained in:
Ilya Kantor 2019-02-21 18:49:22 +03:00 committed by GitHub
commit 1157a959a8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -361,7 +361,7 @@ alert( JSON.stringify(meetup) );
Here we can see that `date` `(1)` became a string. That's because all dates have a built-in `toJSON` method which returns such kind of string.
Now let's add a custom `toJSON` for our object `room`:
Now let's add a custom `toJSON` for our object `room` `(2)`:
```js run
let room = {