Free lesson by Fireship on YouTube
About this lesson
- Module:
- JavaScript
- Time:
- about 12 hours
- Video:
- 12 min
Load real data from the internet and handle slow or failed requests.
By the end of this week you can
- Explain promises and async/await
- Call a REST API with fetch
- Show loading, empty and error states
Learn
- The event loop in plain words
- Promises and async/await
- fetch, JSON and HTTP errors
- try/catch and user-friendly errors
Read or watch
Practice
- Call 3 free public APIs
- Handle a failed request without breaking the page
Build
Weather or movie search app with loading and error states.