Merge pull request #1542 from lumosmind/patch-11
coding style conflict with the tutorial itself
This commit is contained in:
commit
2964aa0d00
1 changed files with 2 additions and 2 deletions
|
@ -425,9 +425,9 @@ alert( numbers[1] ); // 1
|
||||||
Or for nested objects:
|
Or for nested objects:
|
||||||
|
|
||||||
```js run
|
```js run
|
||||||
let user = '{ "name": "John", "age": 35, "isAdmin": false, "friends": [0,1,2,3] }';
|
let userData = '{ "name": "John", "age": 35, "isAdmin": false, "friends": [0,1,2,3] }';
|
||||||
|
|
||||||
user = JSON.parse(user);
|
let user = JSON.parse(userData);
|
||||||
|
|
||||||
alert( user.friends[1] ); // 1
|
alert( user.friends[1] ); // 1
|
||||||
```
|
```
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue