Mastering JS' 5 Best Promises Tutorials

masteringjs

Mastering JS

Posted on August 16, 2021

Mastering JS' 5 Best Promises Tutorials

Promises are one of the most important concepts in JavaScript. It is nearly impossible to write a modern JavaScript app without a then() function popping up somewhere.

Since promises are so fundamental to modern JavaScript, it pays to really understand how promises work in depth. With that in mind, here's some of our most popular tutorials on promises:

1) The Promise then() Function in JavaScript

The then() function is the primary way you interact with promises. Here's how it works.

Alt Text

2) JavaScript Promise Chaining

The then() function is used for chaining promises. This tutorial explains what it means to chain promises, and how you can chain promises like a pro.

3) JavaScript Create Promise

The then() function helps you work with promises, but how do you create a promise in the first place? This tutorial shows you how.

4) The Promise catch() Function in JavaScript

The catch() function is a commonly used pattern for handling errors in promises. Did you know that catch() is a one-line syntactic sugar on top of then()? This tutorial explains how catch() works.

5) The Promise.all() Function in JavaScript

The Promise.all() function is how you execute multiple promises in parallel. It is especially useful for executing multiple async functions in parallel and waiting for all of them to finish. This tutorial explains how Promise.all() works.

💖 💪 🙅 🚩
masteringjs
Mastering JS

Posted on August 16, 2021

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related