Checklist progress
0/168Learned
JavaScript Developer
Study Checklist
Checklist progress
0/168Learned
Given a scenario, apply asynchronous programming concepts.
0/8
Given a scenario, use event loop and event monitor or determine loop outcomes.
0/4
Microtasks (Promise callbacks) execute before the next macro-task (setTimeout callback)
Learn this conceptPrepare for the Exam
Study Community
Ask questions and get the latest info from other JavaScript Developer studiers. 593 members and growing.
JavaScript is single-threaded and processes work via an event loop. Synchronous code runs to completion first; then microtasks (Promise callbacks) run; then macrotasks (setTimeout, setInterval, I/O). Understanding this ordering predicts output when synchronous code, setTimeout(fn, 0), and resolved Promise .then() callbacks are mixed.