|
|
@ -327,8 +327,8 @@ const users = {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const text = JSON.stringify(users, undefined, 4)
|
|
|
|
const txt = JSON.stringify(users, undefined, 4)
|
|
|
|
console.log(text) // text means JSON- because json is a string form of an object.
|
|
|
|
console.log(txt) // text means JSON- because json is a string form of an object.
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
```sh
|
|
|
|
```sh
|
|
|
@ -446,8 +446,8 @@ const user = {
|
|
|
|
points: 30
|
|
|
|
points: 30
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const text = JSON.stringify(user,['firstName', 'lastName', 'country', 'city', 'age'],4)
|
|
|
|
const txt = JSON.stringify(user,['firstName', 'lastName', 'country', 'city', 'age'],4)
|
|
|
|
console.log(text)
|
|
|
|
console.log(txt)
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
```sh
|
|
|
|
```sh
|
|
|
@ -594,4 +594,4 @@ const text = `{
|
|
|
|
|
|
|
|
|
|
|
|
🎉 CONGRATULATIONS ! 🎉
|
|
|
|
🎉 CONGRATULATIONS ! 🎉
|
|
|
|
|
|
|
|
|
|
|
|
[<< Day 15](https://github.com/Asabeneh/30DaysOfJavaScript/blob/master/15_Day/15_day_classes.md) | [Day 17 >>](https://github.com/Asabeneh/30DaysOfJavaScript/blob/master/17_Day/17_day_web_storage.md)
|
|
|
|
[<< Day 15](https://github.com/Asabeneh/30DaysOfJavaScript/blob/master/15_Day/15_day_classes.md) | [Day 17 >>](https://github.com/Asabeneh/30DaysOfJavaScript/blob/master/17_Day/17_day_web_storage.md)
|
|
|
|