From 169d004eac1748367ad2ccf2ceb362907ecd874a Mon Sep 17 00:00:00 2001 From: Karan <50290386+Sonawane-Karan26@users.noreply.github.com> Date: Tue, 30 Nov 2021 18:25:44 +0530 Subject: [PATCH] Delete Project 1.txt --- Chapter 15/Project 1.txt | 38 -------------------------------------- 1 file changed, 38 deletions(-) delete mode 100644 Chapter 15/Project 1.txt 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" - } -]