← 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 →- Q1. In what order does this print the letters? (code)
- Q2. What does an async function always return?
- Q3. fetch() to a URL that returns HTTP 404. What happens?
- Q4. Which runs three independent requests in parallel and waits for all?
- Q5. What does this print? (code)
- Q6. What does this print? (code)
- Q7. What does this print? (code)
- Q8. Which Promise helper gives the result of the first promise to SUCCEED, ignoring earlier failures?
- Q9. How do you handle errors when using await?
- Q10. Why is JavaScript in the browser called single-threaded but non-blocking?