Glossary: JavaScript Beyond the Basics
async function
Also written: async, async/await, await
A function marked `async` always returns a promise, and inside it `await` pauses just that function until a promise settles. If the promise rejects, `await` throws the reason, so ordinary `try`/`catch` handles asynchronous errors.