From 24624a37fd33118715792446b3a25e7908e50332 Mon Sep 17 00:00:00 2001 From: Karan <50290386+Sonawane-Karan26@users.noreply.github.com> Date: Thu, 25 Nov 2021 19:26:42 +0530 Subject: [PATCH] Exercise 12.9 --- Chapter 12/Exercise 12.9 | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Chapter 12/Exercise 12.9 diff --git a/Chapter 12/Exercise 12.9 b/Chapter 12/Exercise 12.9 new file mode 100644 index 0000000..958b981 --- /dev/null +++ b/Chapter 12/Exercise 12.9 @@ -0,0 +1,15 @@ +let myList = [{ +"name": "Learn JavaScript", +"status": true +}, +{ +"name": "Try JSON", +"status": false +} +]; + +const newStr = JSON.stringify(myList); +const newObj = JSON.parse(newStr); +newObj.forEach((el)=>{ + console.log(el); +})