JavaScript & TypeScript

async/await

/eɪˈsɪŋk əˈweɪt/

Definition

Syntactic sugar over Promises that lets you write asynchronous code in a sequential, readable style.

Example in context

"Wrap the fetch in try/catch when using async/await — rejected promises become thrown errors."

Related terms

Practice this term

Master async/await in context by working through exercises in the JavaScript & TypeScript module. You'll see the term used in real engineering scenarios with multiple-choice, fill-in-the-blank, and matching drills.