Callbacks, Promises, Async Await - JavaScript Fetch API Explained

Callbacks, Promises, Async Await - JavaScript Fetch API Explained

Dave Gray via YouTube Direct link

What is a callback function?

2 of 14

2 of 14

What is a callback function?

Class Central Classrooms beta

YouTube videos curated by Class Central.

Classroom Contents

Callbacks, Promises, Async Await - JavaScript Fetch API Explained

Automatically move to the next video in the Classroom when playback concludes

  1. 1 Intro
  2. 2 What is a callback function?
  3. 3 What is the problem with callbacks?
  4. 4 JavaScript Promises have 3 states
  5. 5 A promise may not return a value where you expect it to: You need to wait for a promise to resolve
  6. 6 Using thenables with a promise
  7. 7 An easy mistake to make with promises
  8. 8 Creating an async function
  9. 9 Applying await inside the function
  10. 10 Example 1: Retrieving user data
  11. 11 Example 2: Retrieving dad jokes
  12. 12 Example 3: Posting data
  13. 13 Example 4: Retrieving data with URL parameters
  14. 14 Abstract it all into single responsibility functions

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.