🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← All topics

Quiz: Async JavaScript: questions with answers

10 questions, each with the answer and a short explanation.

Take the timed quiz + get a certificate →
  1. Q1. In what order does this print the letters? (code)
  2. Q2. What does an async function always return?
  3. Q3. fetch() to a URL that returns HTTP 404. What happens?
  4. Q4. Which runs three independent requests in parallel and waits for all?
  5. Q5. What does this print? (code)
  6. Q6. What does this print? (code)
  7. Q7. What does this print? (code)
  8. Q8. Which Promise helper gives the result of the first promise to SUCCEED, ignoring earlier failures?
  9. Q9. How do you handle errors when using await?
  10. Q10. Why is JavaScript in the browser called single-threaded but non-blocking?