What exactly is the Event Loop in JavaScript? | CodeSketched

preview_player
Показать описание
In this video, we look at the concept of the event loop. We learn about the heap, the stack, and the message queue and how these three concepts work together which is at the core of how the language works.

Check out our other popular videos:

1. Learn about public-key cryptography

2. maximum substring in a string (Google interview question)

3. How the javascript engine works?

4. Real time median in a stream, another google interview question

5. Understand the Javascript event loop

6. Understand Promises in javascript

7. Git basics you must know
Рекомендации по теме
Комментарии
Автор

Remarkable efforts and unbelievably effective and concise. Keep making these behind the scences in depth videos very few people cover these and less than a handful can deliver it effectively.

Shivam-slsp
Автор

Great explanation!
And about the question, I think the setTimeout with 0 sec would still wait in the queue till the other functions get executed.

shashankbhatgs
Автор

Perhaps setTimeout with 0 passed is a way to do non blocking code. Like async or something.

this.channel
Автор

does every function has it's own personal message queue? what if there's async code within async code? will it go to queue or stack?

shivamrawat
Автор

to avoid that, async concept we need to use

pavankumar-ofew