13 · Environments & Packaging

Async / Await

Readable asynchronous code

Syntax for waiting on asynchronous work without nesting callbacks. `await` pauses the async function until a Promise settles.

Concrete example

`const user = await fetchUser(id)` waits for the network call before continuing.

Why it matters

How modern JS/TS expresses almost every I/O operation.