Learning Objectives
- What is the Fetch API?
- Write a Basic Fetch Request
- Displaying the Content
- Create a Reusable Fetch Function
- Handling Errors
- Manage Multiple Requests with Promise.all
- Posting Data with fetch
Materials
If you are using Odin as your primary learning materials, please go to each link in this list and read through the content on that page. If there are links you are redirected to as you read/work through the content, follow those links as well and read the content there also.
If you are using Treehouse as your primary learning materials, please go through the following courses in treehouse:
- Working with Fetch API (44 mins)
Assignments
Coding Assignment
This week you will be refactoring the work you did last week by retrieving data with the Fetch API instead of XMLHttpRequest (XHR):
Mindset Assignment
Have you ever harbored persistent feelings of self-doubt despite the successes you’ve achieved? Felt like, “someone is going to find out that I don’t deserve to be where I am” or that “others know everything, and I know very little”. Initially coined in the ‘70s, this phenomenon has a name—Imposter Syndrome—and though it tends to disproportionately affect those in underrepresented groups in tech, it is quite widespread across the industry. (A 2018 study reported that 58% of all tech workers feel this way!)
Unfortunately, it’s not something that we can make magically go away—in fact a lot of folks may feel it many years into their career. On a good note, however, it is something we can manage and harness in a positive way for growth and learning, as discussed in this TED talk by Mike Cannon-Brookes, who founded and runs the tech behemoth, Atlassian. (Yes, even CEOs can have Imposter Syndrome!) And If you don’t experience this phenomenon personally, it’s still worth understanding so you can keep an eye out for it in friends and peers and help them manage it. A good first start to managing Imposter Syndrome is to shine a light on it. Talk to your classmates, mentors, friends, about your feelings and how to keep that self-doubt in check.
– Have you every felt Imposter Syndrome yourself and, if you’re comfortable sharing, how did it manifest itself? What, if anything, has helped you mitigate these feelings?
– What do you think are some of the immediate or long-term effects of Imposter Syndrome if left unchecked?
When you’ve completed your Coding Assignment, and have read and thought about the mindset questions above, submit ALL of your assignments (link to your pull request on GitHub and mindset) using the Homework Assignment Submission Form.