From 75a187864d0f8d81b2c22f9c46a570a538f283d8 Mon Sep 17 00:00:00 2001 From: Patrick Njuguna Date: Sat, 18 Jan 2020 14:12:00 +0300 Subject: [PATCH] json examples fix avoid using 'text' as a variable name since it is reserved and returns an error --- 16_Day/16_day_json.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/16_Day/16_day_json.md b/16_Day/16_day_json.md index b4660016..ff04882d 100644 --- a/16_Day/16_day_json.md +++ b/16_Day/16_day_json.md @@ -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 @@ -594,4 +594,4 @@ const text = `{ 🎉 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) \ No newline at end of file +[<< 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)