From e6db45bde35f5ff6a966827310bed290b64a38e8 Mon Sep 17 00:00:00 2001 From: Karan <50290386+Sonawane-Karan26@users.noreply.github.com> Date: Tue, 30 Nov 2021 18:34:44 +0530 Subject: [PATCH] renamed --- Chapter 15/myscript.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 Chapter 15/myscript.js 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}`); + }); +});