async/await Keyword Quiz
Question
What does the `await` keyword do inside an async function?
Hint
await is used to wait for a Promise to resolve.
Explanation
Inside an async function, await pauses the execution of that function until a Promise settles (resolves or rejects), then yields the resolved value. Importantly, it does NOT block the browser — other code can still run while the async function waits. It does not create Promises (you write those yourself) and it does not convert sync functions to async (that is what the async keyword does).
Related Resources
Related Lessons
- Async JavaScript
Learn how async/await works.
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.