Exercise 12.9
This commit is contained in:
@@ -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);
|
||||
})
|
||||
Reference in New Issue
Block a user