Merge pull request #61 from npnjuguna/npnjuguna-json-examples-fix

json examples fix
pull/76/head^2
Asabeneh 5 years ago committed by GitHub
commit a61e8a92c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -327,8 +327,8 @@ const users = {
}
}
const text = JSON.stringify(users, undefined, 4)
console.log(text) // text means JSON- because json is a string form of an object.
const txt = JSON.stringify(users, undefined, 4)
console.log(txt) // text means JSON- because json is a string form of an object.
```
```sh
@ -446,8 +446,8 @@ const user = {
points: 30
}
const text = JSON.stringify(user,['firstName', 'lastName', 'country', 'city', 'age'],4)
console.log(text)
const txt = JSON.stringify(user,['firstName', 'lastName', 'country', 'city', 'age'],4)
console.log(txt)
```
```sh

Loading…
Cancel
Save