Asynchronous programming and the Event Loop | JavaScript introduction for beginners [2021] #26

preview_player
Показать описание
Link to coupons with BIG DISCOUNTS 🤯 :

Do you want to bring your dev skills to the next level? Then check out the links with BIG DISCOUNTS to my courses on Udemy! Purchasing the courses is a great way to support this channel and the content I produce, while also getting something amazing in return, so head there right now! I am looking forward to seeing you there and receiving your feedback on the course!

The courses also have a 30-day money-back guarantee, so if you are not satisfied with the purchase, you can ask for a refund, no questions asked.

***

Hi everyone! In this video, we go through the building blocks of asynchronous programming in JavaScript. We discuss why we need asynchronous programming, what is the Call Stack, what is the Event Loop, and how we can execute asynchronous with callbacks.

This video is part of a JavaScript introductory course for beginners, where I will take you through all the most important JavaScript concepts, as well as several best practices for the language. Here is the playlist for the whole JavaScript introduction course:

The course has an interactive online platform where you can practice everything we discuss during the videos:

This course is party based on several JS books, which can be found for free here:

─ 🎬 VIDEO CHAPTERS AND CONTENT ─
0:00 Introduction
2:11 What does asynchronous programming mean in JavaScript?
10:25 Understanding the Call Stack
15:08 Understanding the Event Loop in JavaScript
30:12 Blocking the program's execution
32:06 Asynchronous execution with callbacks
41:19 Closing

─ 🎥 OTHER PLAYLISTS IN THE CHANNEL ─

─ 🌎 ADDITIONAL LINKS ─

─ 📬 SUBSCRIBE TO THE CHANNEL ─
Want to become a better, more skilled developer? Then make sure to subscribe to the channel and keep on challenging yourself with the new concepts we discuss in every video :) I have a lot of ideas for playlists, ranging from an introduction to Typescript to a deep dive on more complex topics such as microservices-based systems, securing applications, optimization, and much more!

─ 🔈 CONTRIBUTE! ─
If there is any topic in development that interests you, make sure to write it down in the comments! I will take into consideration all your suggestions and requests, as well as the popularity of each of them, when deciding which series to record in the future :)
Рекомендации по теме
Комментарии
Автор

I am really impressed by your politeness. The high culture level. Thank you.

YuriiKratser
Автор

Great video, ty. The only thing that is not clear to me is why do we skip task queue on the first event loop run and don't skip microtasks ? Its confuses me because both of them (task and microtask) were added to their queues and the same event loop run.Or it's just a rule that if task queue was empty before synchronous code run, it can only add new tasks and can't execute them until the next event loop cycle, unlike microtask queue?

ДенисКац-эь