Question 2
Back to Exercise
Which of these callbacks is queued as a microtask?
- A A setTimeout callback
- B A promise .then callback Correct
- C A click event handler
- D A setInterval callback
Correct Answer: Option B
Promise reactions, await continuations, queueMicrotask and MutationObserver are microtasks; timers and events are tasks.
Discussion & Comments 0
Share your method, a shortcut, or ask about a step you didn't follow.
No comments yet. Be the first to share your solution!