DEV Community

Mastering JS
Mastering JS

Posted on

1

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.

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (0)

SurveyJS custom survey software

JavaScript Form Builder UI Component

Generate dynamic JSON-driven forms directly in your JavaScript app (Angular, React, Vue.js, jQuery) with a fully customizable drag-and-drop form builder. Easily integrate with any backend system and retain full ownership over your data, with no user or form submission limits.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay