Frage im Vorstellungsgespräch bei Plexus Worldwide

How javascript events loop works

Antwort im Vorstellungsgespräch

Anonym

26. Mai 2022

The Event Loop has one simple job — to monitor the Call Stack and the Callback Queue. If the Call Stack is empty, the Event Loop will take the first event from the queue and will push it to the Call Stack, which effectively runs it. Such an iteration is called a tick in the Event Loop