This commit is contained in:
Karan
2021-11-25 20:04:00 +05:30
committed by GitHub
parent 86d8354566
commit cf275ff03c
-18
View File
@@ -1,18 +0,0 @@
[
{
"name": "Learn JavaScript",
"status" : true
},
{
"name": "Try JSON",
"status" : false
}
]
const url = "list.json";
fetch(url).then(rep => rep.json())
.then((data) => {
data.forEach((el) => {
console.log(`${el.name} = ${el.status}`);
});
})