Event Loop in JavaScript | How JavaScript Works? | (explained with animation)

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 ต.ค. 2024

ความคิดเห็น • 8

  • @dearozero3631
    @dearozero3631 9 หลายเดือนก่อน +2

    This is one of the clearest videos I've seen on how the event loop works.

  • @DucLe-sh2nl
    @DucLe-sh2nl ปีที่แล้ว +1

    Amazing video, but can you explain me why in "web api", the second goes first, then the third goes. Is "web API" a queue?

    • @zorefcode
      @zorefcode  ปีที่แล้ว

      Promises are micro task(jobs queue) where as setTimeout events are macro task(task queue). Event loop prioritise all micro task in the queue before moving into macro task.

    • @manishagupta7570
      @manishagupta7570 ปีที่แล้ว

      Can you suggest ant tutorial to study in deep

  • @anthonysoffice9367
    @anthonysoffice9367 ปีที่แล้ว +2

    thanks

  • @instromaniaworld
    @instromaniaworld 2 ปีที่แล้ว +2

    Great 👍 👌