diff --git a/Chapter 15/Project 1.txt b/Chapter 15/Project 1.txt deleted file mode 100644 index 8f44f53..0000000 --- a/Chapter 15/Project 1.txt +++ /dev/null @@ -1,38 +0,0 @@ - - - Project 14 - - - - - -// myscript.js -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}`); - }); -}); - - -// people.json -[ - { - "first": "Laurence", - "last": "Svekis", - "topic": "JavaScript" - }, - { - "first": "John", - "last": "Smith", - "topic": "HTML" - }, - { - "first": "Jane", - "last": "Doe", - "topic": "CSS" - } -]