>_
SWE Maxx
Questions
Quizzes
Daily challenge
System design
My attempts
Sign in
☀
☾
Light mode
Dark mode
Loading question…
Sign in
← Question bank
Fundamentals · Multiple Choice
Difficulty: Medium
What happens when an async function awaits a pending Promise?
JavaScript
Asynchronous programming
Choose your answer
A
The Promise is cancelled.
B
The function returns the pending Promise's value immediately.
C
The entire JavaScript process blocks until the Promise settles.
D
That function pauses; other JavaScript work can continue.
Check answer
More in Fundamentals →
What happens when an async function awaits a pending Promise? | SWE Maxx