🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.undefined
  2. B.A Promise
  3. C.The value directly
  4. 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 →