← Quiz: Async JavaScript: all 10 questions
Quiz: Async JavaScript · Question 2 of 10
What does an async function always return?
What does an async function always return?
- A.undefined
- B.A Promise
- C.The value directly
- D.A callback
Answer & explanation
Correct answer: A Promise
Whatever you return is wrapped in a promise.
Can you get the rest right without peeking?
Take the timed Quiz: Async JavaScript quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →