Quiz

JavaScript Async Quiz

8 questions about Promise, async/await, and how JavaScript handles operations that take time.

8
questions
~4 min
to complete
instant result
Question 1 of 8
Why does JavaScript need asynchronous code at all?
Question 2 of 8
How many states can a Promise have?
Question 3 of 8
What does the await keyword do?
Question 4 of 8
Which kind of function needs to be marked in order to use await inside it?
Question 5 of 8
What's the difference between setTimeout and setInterval?
Question 6 of 8
How do you handle an error in a promise?
Question 7 of 8
What does an async function return if it has no explicit return?
Question 8 of 8
What is the event loop, in simple terms?
0/8