LearnFrenzy
Sign in Take a free test

Event Loop · Event Loop MCQ · Question 2

Which callback is a microtask? Answer, explanation & discussion

  • MCQ
  • Easy
  • 0 comments
  • Answer explained
  • Moderated community
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!

Post your comment

Comments appear after a quick review by our team.

Search LearnFrenzy

Esc

Quick links