Beginner JavaScript
Q31 / 100

What does async/await do?

Correct! Well done.

Incorrect.

The correct answer is B) Pauses execution at await until a Promise resolves, enabling async code in a synchronous style

B

Correct Answer

Pauses execution at await until a Promise resolves, enabling async code in a synchronous style

Explanation

async function f() { const result = await fetchData(); } pauses at await without blocking the thread.

Progress
31/100