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.

Intermediate

40 Lessons

12h

Certificate of Completion

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.

AI-POWERED

Explanations

AI-POWERED

Explanations

This course includes

69 Playgrounds
5 Quizzes

This course includes

69 Playgrounds
5 Quizzes

Course Overview

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 ...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

What You'll Learn

An in-depth understanding of JavaScript promises

Show more

Course Content

1.

Introduction

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

Basics of Promises

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

Chaining Promises

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

Working with Multiple Promises

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

Async Functions and Await Expressions

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.
7.

Conclusion

1 Lesson

Build on key concepts of JavaScript promises, async/await, and error handling.

Course Author

Trusted by 1.4 million developers working at companies

Anthony Walker

@_webarchitect_

Emma Bostian 🐞

@EmmaBostian

Evan Dunbar

ML Engineer

Carlos Matias La Borde

Software Developer

Souvik Kundu

Front-end Developer

Vinay Krishnaiah

Software Developer

Eric Downs

Musician/Entrepeneur

Kenan Eyvazov

DevOps Engineer

Anthony Walker

@_webarchitect_

Emma Bostian 🐞

@EmmaBostian

Hands-on Learning Powered by AI

See how Educative uses AI to make your learning more immersive than ever before.

Instant Code Feedback

Evaluate and debug your code with the click of a button. Get real-time feedback on test cases, including time and space complexity of your solutions.

AI-Powered Mock Interviews

Adaptive Learning

Explain with AI

AI Code Mentor