Promissa saysasync/await is syntactic sugar that makes promise-based code read synchronously.
Mark a function async and use await before a promise to pause until it settles, getting the value directly. An async function always returns a promise. This turns .then chains into straight-line code — far easier to read and reason about, especially with loops and conditionals.
Power-ups you unlock
async functions always return a promise
await pauses until the promise settles
Reads like synchronous code
Cleaner than .then chains for sequencing
Race Condition Rex attacks — common mistakes
await outside an async function (syntax error, except top-level modules)
Awaiting in a loop when parallel is fine
Forgetting the function still returns a promise
Boss battleRewrite a .then chain as an async function with await.