JavaScript

Async/Await

Definition

Syntactic sugar built on top of Promises that makes asynchronous code look and behave like synchronous code. `async` functions always return a Promise, and `await` pauses execution until a Promise resolves.

Code Example

Javascript
Tip: Modify the code above and click “Run” to see the results

Learn More

Related Terms