cleanup
This commit is contained in:
parent
86d8354566
commit
cf275ff03c
@ -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}`);
|
||||
});
|
||||
})
|
||||
Loading…
x
Reference in New Issue
Block a user