Skip to content

Commit 2964aa0

Browse files
authored
Merge pull request #1542 from lumosmind/patch-11
coding style conflict with the tutorial itself
2 parents bb3f9aa + b32ce2c commit 2964aa0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -425,9 +425,9 @@ alert( numbers[1] ); // 1
425425
Or for nested objects:
426426

427427
```js run
428-
let user = '{ "name": "John", "age": 35, "isAdmin": false, "friends": [0,1,2,3] }';
428+
let userData = '{ "name": "John", "age": 35, "isAdmin": false, "friends": [0,1,2,3] }';
429429

430-
user = JSON.parse(user);
430+
let user = JSON.parse(userData);
431431

432432
alert( user.friends[1] ); // 1
433433
```

0 commit comments

Comments
 (0)