JavaScript Asynchronous Programming

Learn about asynchronous programming in JavaScript with async/await.

By the end of this lesson, we’ll be able to apply the async/await pattern to perform asynchronous operations.

Asynchronous programming with async/await

In the not-so-distant past, developers typically relied on promise chains to handle asynchronous logic, which would quickly lead to messy and unreadable code.

The async/await statements greatly simplify the syntax for making asynchronous calls with JavaScript. They make asynchronous code look like synchronous code.

Functions declared with async always return a promise, like in the example below:

Get hands-on with 1200+ tech skills courses.