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 = [{
"name": "Learn JavaScript",
"status": true
"name": "Learn JavaScript",
"status": true
},
{
"name": "Try JSON",
"status": false
"name": "Try JSON",
"status": false
}
];
@@ -12,4 +12,4 @@ const newStr = JSON.stringify(myList);
const newObj = JSON.parse(newStr);
newObj.forEach((el)=>{
console.log(el);
})
});