JavaScript has a single-threaded event loop, meaning it processes one task at a time. However, within this loop, tasks are divided into macro-tasks and micro-tasks, which determine the execution order. 1. Macro-tasks vs. Micro-tasks š¹ Macro-tasks (...