HomeCoursesJavaScript Promises
AI-powered learning
Save

JavaScript Promises

Gain insights into JavaScript Promises to handle asynchronous events, chain multiple promises, utilize built-in methods, and master async functions with await expressions for efficient event handling.

4.7
40 Lessons
12h
Join 2.9 million developers at
Join 2.9 million developers at
LEARNING OBJECTIVES
  • An in-depth understanding of JavaScript promises
  • An understanding of the asynchronous programming in JavaScript
  • Hands-on experience creating settled and unsettled promises
  • A working knowledge of chaining promises
  • Familiarity with monitoring and responding to promises executing in parallel
  • The ability to track unhandled rejections

Learning Roadmap

40 Lessons5 Quizzes

1.

Introduction

Introduction

Get familiar with JavaScript promises, enhancing asynchronous programming and improving code clarity.

2.

Basics of Promises

Basics of Promises

Unpack the core of JavaScript promises, their states, handlers, and construction methods.

3.

Chaining Promises

Chaining Promises

7 Lessons

7 Lessons

Examine JavaScript promise chaining to handle sequential async operations and centralized error management.

4.

Working with Multiple Promises

Working with Multiple Promises

10 Lessons

10 Lessons

Grasp the fundamentals of managing multiple promises using Promise.all(), allSettled(), any(), and race().

5.

Async Functions and Await Expressions

Async Functions and Await Expressions

7 Lessons

7 Lessons

Take a closer look at async functions, await expressions, and promise handling in JavaScript.

6.

Tracking Down the Unhandled Rejections

Tracking Down the Unhandled Rejections

5 Lessons

5 Lessons

Focus on tracking and managing unhandled promise rejections across JavaScript environments.
Certificate of Completion
Showcase your accomplishment by sharing your certificate of completion.
Author NameJavaScript Promises
Developed by MAANG Engineers
ABOUT THIS COURSE
Promises are used to deal with event handling and callbacks in asynchronous programming in JavaScript, such as clicks and key presses. Promises allow developers to specify a function to execute at some later point in response to certain events. Promises may also indicate whether a certain code succeeded or failed in performing its assigned job. In this course, you will learn how to chain different promises, which makes the code easier to understand and debug. Next, you’ll learn built-in methods to monitor and respond to multiple promises executing in parallel. Then, you will cover async functions and await expressions that are often used with promises. Finally, you’ll learn how to track promises when they are rejected without a rejection handler. Promises are important to understand and debug the code in asynchronous programming. The concepts of JS promises help developers working with Node.js and Deno for event handling and with asynchronous JavaScript APIs.
ABOUT THE AUTHOR

Nicholas Zakas

Hi, I’m Nicholas Zakas. I’m an independent software developer, author, and coach living in Peabody, Massachusetts. I’ve been an architect at Box and Yahoo, created the ESLint open source project, and wrote several books about JavaScript.

Learn more about Nicholas

Trusted by 2.9 million developers working at companies

These are high-quality courses. Trust me the price is worth it for the content quality. Educative came at the right time in my career. I'm understanding topics better than with any book or online video tutorial I've done. Truly made for developers. Thanks

A

Anthony Walker

@_webarchitect_

Just finished my first full #ML course: Machine learning for Software Engineers from Educative, Inc. ... Highly recommend!

E

Evan Dunbar

ML Engineer

You guys are the gold standard of crash-courses... Narrow enough that it doesn't need years of study or a full blown book to get the gist, but broad enough that an afternoon of Googling doesn't cut it.

S

Software Developer

Carlos Matias La Borde

I spend my days and nights on Educative. It is indispensable. It is such a unique and reader-friendly site

S

Souvik Kundu

Front-end Developer

Your courses are simply awesome, the depth they go into and the breadth of coverage is so good that I don't have to refer to 10 different websites looking for interview topics and content.

V

Vinay Krishnaiah

Software Developer

Built for 10x Developers

No Passive Learning
Learn by building with project-based lessons and in-browser code editor
Learn by Doing
Personalized Roadmaps
The platform adapts to your strengths & skills gaps as you go
Learn by Doing
Future-proof Your Career
Get hands-on with in-demand skills
Learn by Doing
AI Code Mentor
Write better code with AI feedback, smart debugging, and "Ask AI"
Learn by Doing
Learn by Doing
MAANG+ Interview Prep
AI Mock Interviews simulate every technical loop at top companies
Learn by Doing

Free Resources

FOR TEAMS

Interested in this course for your business or team?

Unlock this course (and 1,000+ more) for your entire org with DevPath