JavaScript Promises in Depth
Course on egghead by Marius Schulz
- 1 h 7 min
- LengthVideo runtime
- Subscription
- Price modelegghead plan
- 13
- Lessons
- 4.7
- Rating out of 572 ratings on egghead
- Dec 2018
- Published7 Dec 2018
About this course
ES2015 brought a native Promise to the JavaScript standard library. In this course, we’re going to take an in-depth look at how to use promises to model various kinds of asynchronous operations. First, we’re going to explore how to create promises using the Promise constructor or the Promise.resolve() or Promise.reject() methods. Then, we’re going to see how to chain promises together using .then(), .catch(), and .finally(). We’re going to compare various error handling strategies along the way. We’re going to wrap up this course by taking a look at how to deal with multiple promises using Promise.all() and Promise.race() and how to await a promise using the await operator.
What it covers
- 1Introduction to JavaScript Promises in Depth
- 2Create a Promise Chain in JavaScript with Promise.prototype.then()
- 3Catch Errors in a JavaScript Promise Chain with Promise.prototype.catch()
- 4Execute Cleanup Logic in a JavaScript Promise Chain with Promise.prototype.finally()
- 5Create a Rejected Promise in JavaScript with Promise.reject()
- 6Create a Resolved Promise in JavaScript with Promise.resolve()
- 7Create a New Promise in JavaScript with the Promise Constructor
- 8Convert a Callback-Based JavaScript Function to a Promise-Based One
- 9Wait for the Fastest JavaScript Promise to Settle with Promise.race()
- 10Wait for Multiple JavaScript Promises to Be Fulfilled with Promise.all()
- 11Wait for Multiple JavaScript Promises to Settle with Promise.allSettled()
- 12Wait for the Fastest JavaScript Promise to Be Fulfilled with Promise.any()
- 13Await a JavaScript Promise in an async Function with the await Operator
Similar JavaScript courses
Same topic, nearest in length, up to three from any one provider.
Data read from the egghead catalogue on 28 Nov 2026. How the data is collected.