MediumConceptJavaScript internals
What is the output order of a setTimeout of 0, a resolved promise then and synchronous code?
This answer is part of Pro
58 of 359 Frontend answers are free. A Pro pass opens the rest, including hands-on task steps.
PreviousWhat is the event loop and how are microtasks and macrotasks ordered?Next How does this work in regular functions, arrow functions and with bind?