Exercises: Fetch API – Javascript In Depth



Let’s get some practice with the Fetch API in Javascript together. We take a look at how we can download some HTML from a a webpage, along with how we can get JSON data from a REST API.

We also take a look at how we can save binary data like images using fetch and the fs library that’s built into NodeJS. These exercises will prepare us really well for the second big project in the course which is coming up next.

This is part of a series where we go over Javascript in depth to learn programming concepts as well as web development: https://youtube.com/playlist?list=PLovN13bqAx7D_MFjL0PHnCkYAHMSO8-kU

Chapters:
00:00 Introduction
00:44 Warmup Exercise
12:19 Exercise 1
20:30 Exercise 2
32:32 Exercise 3
54:49 Next Steps

📦 Github Repository with the notes and exercise code+solutions: https://github.com/Nooder/javascript-in-depth
💬 Come join us on Discord to chat with a like-minded community about tech and learning: https://discord.gg/K4nkugP7Gd