LoginSignup
0
0

JavaScript event loop

Posted at

Important Word
・Call Stack
・Task Queue(Callback Queue)
・Microtask Queue

1️⃣ check Call Stack → clear Call Stack
  ↓ if Call Stack is clear

2️⃣ check Task Queue → clear Task Queue
  ↓ if Task Queue is clear

3️⃣ check Microtask Queue → clear Microtask Queue
  ↓ if Microtask Queue is clear

  go back to Call Stack and loop again. 1️⃣ → 2️⃣ → 3️⃣

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0