Event Loop in JavaScript for beginners!

preview_player
Показать описание
This video would teach you very basics of how event loop works in JavaScript.

------------
Don't forget to subscribe and like the video if you enjoyed :)
Рекомендации по теме
Комментарии
Автор

Thanks for the explanation, I do not use the JavaScript language very much!

Journeyman-Fixit
Автор

Something that confuses me is how exactly would JavaScript (or JavaScript's interfaces, like `window`) "check" for whether there needs* to be another set of conditional "checks"? Like, for example, say you have an asynchronous requestAnimationFrame() recursive loop going and the browser will somehow need to "check" for whether the monitor has refreshed or not -- how is that accomplished if the monitor refreshes at variable times? Sometimes it refreshes with 16.66ms delay, other times with 16.85ms delay, so surely there must be an even lower level implementation of the Event Loop which checks for whether these "checks" need to occur in the first place. I don't see how the Event Loop could just be turned off because then what would reactivate the Event loop? I guess there is obviously some much lower level system processes at play but ya i'm confuzzled

Retrofire-
visit shbcf.ru