JavaScript Event Loop -- Visualized!

preview_player
Показать описание
Struggling to understand the JavaScript Event Loop? Look no further! In this animated, visual, and comprehensive tutorial, we'll break down the JavaScript Event Loop, how it works, and why it's essential for asynchronous programming.

📚 In This Video, You Will Learn:
What is the JavaScript Event Loop?
How the Event Loop manages tasks, microtasks, and the call stack.
The role of the Event Loop in asynchronous JavaScript.
Many Real-world examples and scenarios including, timers, callbacks, fetch, user events like click and hover, and so much more.

💡 Why This Video?
We'll also cover the reasons WHY this is such an important topic and the reasons for understanding and studying it at a fundamental level.
Understanding the JavaScript Event Loop is crucial for writing efficient and bug-free code. This video is perfect for beginners who want to grasp the fundamentals and for intermediate developers looking to solidify their knowledge.

This is episode 18 of 20 things Javascript Developers Should Know But Probably Don't.

🕒 Timestamps:
0:00 Intro
2:40 Synchronous vs. Asynchronous
5:05 How is Asynchronous possible?
5:43 Call Stack
6:02 Example 1
6:54 Example 2
7:40 Example 3
8:41 Example 4
10:27 Example 5
11:13 Web APIs
12:45 Task Queue
13:31 EVENT LOOP
15:00 Example 6
17:51 Example 7
19:41 Summary
20:13 Microtask Queue + Example 8
22:26 Debugger and DevTools
26:45 Why??
28:17 Conclusion + Outro

ColorCode Etsy Merchandise store:

JavaScript Promises from the series "20 Things JS Developers Should Know but Probably Don't"

*** Announcement ***
Full JavaScript Mastery course is coming! Sign up for Early Access here:
Рекомендации по теме
Комментарии
Автор

lowkey might be the best channel for every js developer

anshvj
Автор

I already know this concept, but your way of teaching is top notch. well-done man

hasithapriyasad
Автор

a video about deep copy and shallow copy would be noice.

sabukuna
Автор

When the world needed him the most, he returned!!!

Neth-gv
Автор

You deserve more views, this is such an underrated channel!

khedr
Автор

coming here after watching legendary "Wth is event loop?" video...I must say, that legendary video laid the foundation and you built the building on top. Top notch, thank you.

JeezySlots
Автор

Producing this level of quality is no easy task. It requires numerous other APIs and event queues to add tasks and manage the loop through the tasks after the call stacks and timing are right.
Thanks a lot man. And I suggest to change this playlist to 50 things you didnt know about javascript 😂😂😂😂

abdallahazme
Автор

OMG! Who are you? wizard? How do you do that? Unbelievable! This is the best EVER explanation on the Russian / English internet! Please DO NOT stop! Thanks! Thanks a lot! Can't even imagine how much time you spent on that video!

georgii_v
Автор

This channel is a hidden gem! I've heard a bit about event loop before, but the animation (and gags) made it look so simple. I'm definitely checking out other videos about JS

sgeuxkm
Автор

one of the best (if not the best) Videos on Youtube for the JS community. Masterpiece! 👏

Salaralali
Автор

You are the role model, I will never thank you enough for the effort you do my 100 hats off for you sir

gamingcurse
Автор

Probably the best explanation of the topics on YouTube. Excellent job. This video is way underrated.

seephor
Автор

MISSED YOU been developing via JS for about 17v months. I've come really far! You've been a big part of my developer education. APPRECIATE YOU!

BrackProgrammerNOLA
Автор

This is how a video is done people. Looking forward to FP stuff.

bmehder
Автор

Thank you for this video. You are the first person who could explain this topic on a really easy to understand way.

Thank you for your videos. They really helped me to understand JS better.

VloggerFJC
Автор

welcome back. as always explanation is top notch

mdyousufgazi
Автор

Can't thank you enough, Sina, for explaining such a complex and advance concept in a such clear and fun way 👏👏👏🎩🎩🎩🌹🌹🌹

mahfoudh_arous
Автор

Thank you SIr, this video is very helpful for me to crack my first ever interview ❤

harshp
Автор

Excellent video about this key JS mechanism used by all the modern frameworks to perform the DOM update. One more reason why it’s important to know about it

elyoaprogrammer
Автор

Bravo! This was my introduction to your channel and I thoroughly enjoyed it. I really appreciate your "Double Impact" intro! Your content is great and I'll be watching more for sure! Cheers...

leftinashes