Async / Await

keyword · JavaScript

1.

Modern JavaScript syntax (ES2017) that allows writing asynchronous code in a sequential and readable way — transforming complex promise chains into clear instructions, simplifying the management of API calls, database queries, and any non-blocking operation.

2.

A mechanism built on Promises that introduces two keywords: `async` to declare an asynchronous function that automatically returns a promise, and `await` to pause execution until that promise resolves — eliminating "callback hell" and making code maintainable at scale.

3.

An essential pattern in modern Full-stack development used both client-side (React, Next.js) and server-side (Node.js, Express.js) — ensuring optimal performance by freeing the main thread during I/O operations like network calls or file reads.

See also
PromiseAsynchronousNode.jsAPI