restructured

This commit is contained in:
Karan
2021-12-03 14:32:34 +05:30
committed by GitHub
parent 12ffbcb07b
commit 48631ecd27
+5 -5
View File
@@ -1,10 +1,10 @@
let myList = [{ let myList = [{
"name": "Learn JavaScript", "name": "Learn JavaScript",
"status": true "status": true
}, },
{ {
"name": "Try JSON", "name": "Try JSON",
"status": false "status": false
} }
]; ];
@@ -12,4 +12,4 @@ const newStr = JSON.stringify(myList);
const newObj = JSON.parse(newStr); const newObj = JSON.parse(newStr);
newObj.forEach((el)=>{ newObj.forEach((el)=>{
console.log(el); console.log(el);
}) });