eggheadio / egghead-design

Illustrations and design elements for egghead.io
http://egghead.io
25 stars 4 forks source link

JavaScript Promises in Depth #140

Closed zacjones93 closed 5 years ago

zacjones93 commented 6 years ago

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.

MaggieAppleton commented 6 years ago

Main Tech – Javascript

Course link: JS Promises in Depth

Course Description:

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.


Previous Javascript Illustrations

image

What are JS Promises?

A promise is a placeholder for a future value. We don't know what the value will be yet, so we make a javascript promise that will either be fulfilled or rejected some time in the future.

Promises are used in asynchronous code – code that runs on the side of a main stream of code, independent of time.

Keywords:


Ideas to Start With:

MaggieAppleton commented 5 years ago

https://www.dropbox.com/sh/lj4lfvbuevk8d75/AABZOGPUmYCu0Gkyd2BPB1N9a?dl=0