Understanding the Event Loop Sequence of Tasks

preview_player
Показать описание
If you have been writing JavaScript for a while, then you have likely encountered a situation where your functions did not run in the order that you expected. You try rearranging your code. You even got desparate and added a setTimeout with a delay of zero milliseconds. Still didn't work.
Watch this to find out why.

Рекомендации по теме
Комментарии
Автор

A masterpiece. The best explanation of the event loop.

genovo
Автор

Wish I could like this video more than once!

stefantholet
Автор

This is SUCH a good summary of the JavaScript Event Loop!!! Thank you for putting this together, you are a fantastic teacher and this really helped me understand it!

JaLikon
Автор

i think it's the best event loop tutorial, thank u !

williamtian
Автор

Well explained, thanks for all these high quality videos Steve!

codeWithYoussouf
Автор

Super useful, short, sweet, and to the point as always! Maybe I zoned out a bit, or did you manage to go through it without mentioning "last-in-first-out"? I guess, if you're interested in Event Loop, you know how a stack works. Thx again Mr Griffith!

MikkelGissel
Автор

Damn! I was not aware of the queueMicrotask function! 💪

blokche_dev
Автор

Awesome video - Thank You. (Imagine if this was asked as an interview question to list the output in the correct order - I would feel sorry for the interviewee )

jaytsecan
Автор

Great video. Well explained. Thank you!

siavoshoon
Автор

Amazing. Thanks. I'm glad you switched to 1080p. Any plans on going 4k?

DmitriyMalayevProfile
Автор

I've been looking for this for hours!! Thank you.
Where can I find a list of all tasks (in general) categorized by queue types?

anasouardini