Interview Hub
Sign in

Q7: What is `async/await` syntactic sugar over?

EasyAsync 29

Answer

async functions return Promises. await pauses the async function until the Promise settles, resuming with the value or throwing on rejection. Errors in await can be caught with try/catch. It does not block the main thread — other tasks run while waiting.

Having a tech or coding interview? Check 29 JavaScript & Node.js interview questions.

EditorJavaScript · local only