Exercise 12.9

This commit is contained in:
Karan
2021-11-25 19:26:42 +05:30
committed by GitHub
parent 1632b9d2d5
commit 24624a37fd
+15
View File
@@ -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);
})