Closed zacjones93 closed 5 years ago
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.
Promises are used in asynchronous code – code that runs on the side of a main stream of code, independent of time.
A Javascript architectural structure / building where sections of it are missing and have dotted lines around their silhouettes where the rest of the building should be.
Pinky promise – two robot javascript hands doing a pinky promise
Mechanical JS pieces over dark surface / road with a few of them shown missing by having the classic chalk outline of them drawn on the ground:
Using negative space to hint at the outlines of something missing.
Primary Tag
JavaScript
https://egghead.io/courses/javascript-promises-in-depth
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.