diff --git a/Chapter 15/myscript.js b/Chapter 15/myscript.js new file mode 100644 index 0000000..fa71167 --- /dev/null +++ b/Chapter 15/myscript.js @@ -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}`); + }); +});