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.
Promises are used to deal with event handling and callbacks in asynchronous programming in JavaScript, such as clicks and key pr...Show More
WHAT YOU'LL LEARN
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
An in-depth understanding of JavaScript promises
Show more
Content
1.
Introduction
2 Lessons
Get familiar with JavaScript promises, enhancing asynchronous programming and improving code clarity.
2.
Basics of Promises
8 Lessons
Unpack the core of JavaScript promises, their states, handlers, and construction methods.
3.
Chaining Promises
7 Lessons
Examine JavaScript promise chaining to handle sequential async operations and centralized error management.
4.
Working with Multiple Promises
10 Lessons
Grasp the fundamentals of managing multiple promises using Promise.all(), allSettled(), any(), and race().
5.
Async Functions and Await Expressions
7 Lessons
Take a closer look at async functions, await expressions, and promise handling in JavaScript.
6.
Tracking Down the Unhandled Rejections
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.
Course Author:
Developed by MAANG Engineers
Trusted by 2.8 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"
Anthony Walker
@_webarchitect_
"Just finished my first full #ML course: Machine learning for Software Engineers from Educative, Inc. ... Highly recommend!"
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."
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"
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."
Vinay Krishnaiah
Software Developer
Hands-on Learning Powered by AI
See how Educative uses AI to make your learning more immersive than ever before.
AI Prompt
Code Feedback
Explain with AI
AI Code Mentor
Free Resources