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.
The JavaScript runtime uses a single-threaded event loop. Synchronous code runs on the call stack; Web APIs (timers, fetch, DOM events) offload work off the stack; completed callbacks enter the task queues and are picked up by the event loop when the stack is empty. Microtasks (Promise callbacks) always drain before the next macrotask.