Skip to content

Commit 78a5ab5

Browse files
authored
enhancement
1 parent cc788d5 commit 78a5ab5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

1-js/05-data-types/12-json/article.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,8 @@ let json = `{
445445
"surname": *!*'Smith'*/!*, // mistake: single quotes in value (must be double)
446446
*!*'isAdmin'*/!*: false, // mistake: single quotes in key (must be double)
447447
"birthday": *!*new Date(2000, 2, 3)*/!*, // mistake: no "new" is allowed, only bare values
448-
"friends": [0,1,2,3] // here all fine
448+
"gender": "male"*!* */!* // mistake: missing comma after non-last property
449+
"friends": [0,1,2,3]*!*,*/!* // mistake: there should not be a comma after the last property
449450
}`;
450451
```
451452

0 commit comments

Comments
 (0)