Q
What does async/await do?
-
A
It lets asynchronous promise-based code be written in a synchronous style; await pauses the async function, not the whole thread
-
B
It replaces promises with callbacks
-
C
It makes JavaScript multithreaded
-
D
It blocks the browser while waiting
Correct Answer:
A. It lets asynchronous promise-based code be written in a synchronous style; await pauses the async function, not the whole thread
Explanation:
An async function always returns a promise.