This commit is contained in:
Karan
2021-11-30 18:34:44 +05:30
committed by GitHub
parent e0f247c40c
commit e6db45bde3
+9
View File
@@ -0,0 +1,9 @@
let url = "people.json";
fetch(url)
.then(response => response.json())
.then(data => {
console.log(data);
data.forEach(person => {
console.log(`${person.first} ${person.last} - ${person.topic}`);
});
});