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
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.
Complete more lessons to unlock your certificate
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.
Trusted by 2.9 million developers working at companies
A
Anthony Walker
@_webarchitect_
E
Evan Dunbar
ML Engineer
S
Software Developer
Carlos Matias La Borde
S
Souvik Kundu
Front-end Developer
V
Vinay Krishnaiah
Software Developer
Built for 10x Developers
No Passive Learning
Learn by building with project-based lessons and in-browser code editor


Personalized Roadmaps
The platform adapts to your strengths & skills gaps as you go


Future-proof Your Career
Get hands-on with in-demand skills


AI Code Mentor
Write better code with AI feedback, smart debugging, and "Ask AI"




MAANG+ Interview Prep
AI Mock Interviews simulate every technical loop at top companies


Free Resources