This repo contains the code for all lessons of my JavaScript Promises in Depth course on egghead.io.
- Create a Promise Chain in JavaScript with
Promise.prototype.then() - Catch Errors in a JavaScript Promise Chain with
Promise.prototype.catch() - Execute Cleanup Logic in a JavaScript Promise Chain with
Promise.prototype.finally() - Create a Rejected Promise in JavaScript with
Promise.reject() - Create a Resolved Promise in JavaScript with
Promise.resolve() - Create a New Promise in JavaScript with the Promise Constructor
- Convert a Callback-Based JavaScript Function to a Promise-Based One
- Wait for the Fastest JavaScript Promise to Settle with
Promise.race() - Wait for Multiple JavaScript Promises to Settle with
Promise.all() - Wait for Multiple JavaScript Promises to Settle with
Promise.allSettled() - Wait for the Fastest JavaScript Promise to Be Fulfilled with
Promise.any() - Await a JavaScript Promise in an async Function with the
awaitOperator
