Delete Exercise 15.1.txt
This commit is contained in:
Vendored
-18
@@ -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}`);
|
|
||||||
});
|
|
||||||
})
|
|
||||||
Reference in New Issue
Block a user