Create exercise 2

This commit is contained in:
LSvekis
2021-09-11 14:14:57 -04:00
committed by GitHub
parent bc9813414b
commit 51da0b3c92
+14
View File
@@ -0,0 +1,14 @@
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);
})