Welcome to week 9 of Intro to Web Dev!
Now you know how to write your own JavaScript code. This week you’ll learn about the fetch()
function, which let you fetch content from other URLs!
Work through the activities in this page to complete the week!
First, watch this video and read through the tutorial to learn about the fetch()
function:
Now that you’ve learned about the fetch()
function, you can start using APIs!
In your own words, what is the fetch function?
In your own words, what is a promise in JavaScript?
In your own words, what is JSON?
In your own words, what is an API?
When working with promises, which is your favorite and why?
Note: There isn’t really a wrong answer to this question, I just want you to think about the pros and cons and your own personal coding preferences.
Now you’ve seen the fundamentals of the fetch()
function and APIs.
To practice these concepts, modify the files in the week-09-fetch
directory of your project repo.
fetch()
function and APIsweek-09-fetch
directory of your project repo