The JavaScript Event Loop

What is JavaScript?

single threaded, non-blocking, asynchronous, concurrent language

mmmh...

Stack

Web API

Task queue

Event Loop

Heap

DOM

Network

Timers

...

main()

rotate

Math.sin

onClick

timer

ajax

Title Text

How does the Event Loop work?

Task queue

Stack

Web API

Task queue

Event Loop

The JavaScript Event Loop

By alenaksu

The JavaScript Event Loop

  • 149