Update Exercise 15.1

This commit is contained in:
Karan
2021-11-30 18:32:06 +05:30
committed by GitHub
parent 5fcb14a9a0
commit 5198236ec4
+3 -2
View File
@@ -1,5 +1,5 @@
// This is a json object, create a file named list.json and place this object[] in it // This is a json object, create a file named list.json in this directory and place this object[] in it.
[ /*[
{ {
"name": "Learn JavaScript", "name": "Learn JavaScript",
"status" : true "status" : true
@@ -9,6 +9,7 @@
"status" : false "status" : false
} }
] ]
*/
const url = "list.json"; const url = "list.json";
fetch(url).then(rep => rep.json()) fetch(url).then(rep => rep.json())