What is the JavaScript event loop really all about - Java Brains

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 ส.ค. 2024
  • In this tutorial, you'll understand what the JavaScript event loop is really all about. Learn the pattern underlying how it works. Understand how the event loop affects both synchronous and asynchronous events.
    Java Brains website: javabrains.io
    #JavaBrains #BrainBytes #WhatIs #JavaScript #Tutorial #Concept

ความคิดเห็น • 189

  • @yogeshjoshi388
    @yogeshjoshi388 4 ปีที่แล้ว +74

    Appreciate your effort you put to make videos. I Learned a lot from your videos over last 5 years. Many Thanks Kaushik :)

    • @Java.Brains
      @Java.Brains  4 ปีที่แล้ว +9

      Thanks! Yes, it does take a lot of time to produce these kind of videos, but I am glad they help! :)

    • @Saketjsaket
      @Saketjsaket 4 ปีที่แล้ว +1

      @@Java.Brains It really helped out many persons. I am also one of them. Following you since your jaxrs courses came out. Thanks a lot for your effort. Happy Independence day...

    • @bhatnagarcapital
      @bhatnagarcapital 3 ปีที่แล้ว

      ​@@Java.Brains How do you do the animations ?

    • @GaganKumar-ib5sg
      @GaganKumar-ib5sg 3 ปีที่แล้ว

      @@Java.Brains Didn't know ,this complex looking concept was so so easy.Thnxx a ton.

    • @haidersalah1416
      @haidersalah1416 ปีที่แล้ว

      Simply You can make a program that can make 1 million likes for you !

  • @u_ziben
    @u_ziben 3 ปีที่แล้ว +37

    This is the clearest explanation of JS's event queue, call stack and event loop I have ever seen on TH-cam. I really appreciate the effort you put into making these videos simple and clear. Great work JB!

  • @rajatmishra9993
    @rajatmishra9993 4 ปีที่แล้ว +52

    I wish I can like this video a million times.

    • @dailyfacts1099
      @dailyfacts1099 3 ปีที่แล้ว +1

      If you click in even number of times it doesn't going to help
      😂

    • @asitpurohit_108
      @asitpurohit_108 2 ปีที่แล้ว

      Can be done using phython

    • @gatoloco1873
      @gatoloco1873 2 ปีที่แล้ว

      Your likes would get stuck in the event queue

  • @zillalsenmesrane1022
    @zillalsenmesrane1022 ปีที่แล้ว +2

    You are a beast my friend , this is the really easiest way to understand event loop , thank you so much

  • @nikhil1651998
    @nikhil1651998 3 ปีที่แล้ว +17

    This tutorial taught Callback, Synchronous & Asynchronous and Event Loop in the most easiest way possible. Watched many long videos but only 8:26 seconds was enough!

  • @nwobodogeorge5370
    @nwobodogeorge5370 3 ปีที่แล้ว

    I have never seen a very clear, straight to the point explanations on event loop like this. Thank you sir.

  • @areyoukidding6274
    @areyoukidding6274 3 ปีที่แล้ว +5

    "If you can't explain it simply, you don't understand it well enough" - Albert Einstein
    This suits you man.. what an explanation!!

  • @PerpetualLearner8934
    @PerpetualLearner8934 4 ปีที่แล้ว +8

    This channel has quality written all over it. Online and offline put together, teachers like you are hard to find. All I can do is write a comment here to thank you. Keep up the good work! :)

  • @maheshsale
    @maheshsale 5 วันที่ผ่านมา

    This one is the best explanation I have ever seen. Thank you.

  • @khalidben9940
    @khalidben9940 2 ปีที่แล้ว

    This is the clearest explanation I have ever seen on youtube about this topic.so many long videos only complicating things instead of making it easy and neat.Java brains you have been always one of my favorite channels.Thank you for this amazing video

  • @vivekmishra5876
    @vivekmishra5876 4 ปีที่แล้ว +6

    This guy made my Weekend.
    Thanks koushik

  • @devroy692
    @devroy692 3 ปีที่แล้ว +2

    OMG. I never thought the eventloop could be so easy to teach. Awesome.

  • @user-cc8he7dy9h
    @user-cc8he7dy9h 2 ปีที่แล้ว +3

    For the first time I saw how someone was able to explain the event loop with some kind of analogy from real life, I think this is what a lot of people on TH-cam lack, thank you very much for your efforts!

    • @kinstar
      @kinstar ปีที่แล้ว

      sometimes the best explanations need to be in human terms 😅

  • @sreid70
    @sreid70 4 ปีที่แล้ว +3

    I think you have the best videos on Javascript period. You take basic concepts and turn them into advanced concepts, yet I still understand what you are saying. You are a great teacher. Well done. Your "Introduction to Javascript for Developers" series is my most favorite Javascript series on TH-cam. Very well done. Permanent bookmark:-)

  • @deadchannel-x2m
    @deadchannel-x2m 3 ปีที่แล้ว +4

    Wow! I actually studied JS Event loop before. As you said, many tutorials and JS Conf Talks helped me understand the concept better.
    But to me, the amazing analogy that you used and your awesome explanation, was the simplest one so far.
    Thank you so much, man!

  • @veerenderreddychama3190
    @veerenderreddychama3190 4 ปีที่แล้ว +1

    I really liked “the waiter - restaurant” analogy to explain the event loop concept. Thanks!

  • @youssefkhaled9418
    @youssefkhaled9418 ปีที่แล้ว

    This is the best and the most intuitive tutorial I've seen explaining the JS Event Loop. Thank You so Much !

  • @zekss07
    @zekss07 2 ปีที่แล้ว

    I am so glad this video had no big circle in it. Thank you for finding your own way of explaining things!

  • @amnishsingh9093
    @amnishsingh9093 ปีที่แล้ว

    Simple, concise and to the point explanations. Thanks Koushik!

  • @Hiroki-Takahashi
    @Hiroki-Takahashi 2 ปีที่แล้ว

    The best explanation on the JS event loop I've seen on the internet. Thank you for making this video!

  • @dj_tika
    @dj_tika 2 ปีที่แล้ว +2

    This video has been incredibly helpful to simplify understanding of how event loops and call back works in JavaScript

  • @SumitKumar-co2pm
    @SumitKumar-co2pm 3 ปีที่แล้ว +1

    The best analogy to explain event loop. Thanks a lot

  • @bernard2735
    @bernard2735 4 ปีที่แล้ว +2

    Great, simple, clearly explained. Thanks mate.

  • @reynaoldman9100
    @reynaoldman9100 2 ปีที่แล้ว +1

    This is the best explanation of the event queue and loop. I learned a lot from your videos. Thanks for putting together these great videos 🙏🏻

  • @mohammadzaidhussain4903
    @mohammadzaidhussain4903 2 ปีที่แล้ว

    You have just explained this topic in 5 mins. Salute for you.... Lots of love and respect

  • @rahulbeniwal2230
    @rahulbeniwal2230 2 ปีที่แล้ว

    I have seen explanations but effort you put to make it animated and real life example is great. Brain actually captures such things more easily. Thank you Java Brains.

  • @wanekaxa1483
    @wanekaxa1483 ปีที่แล้ว

    Thank you so much for making this video, I'm grateful for the fact that the quantity of event loop tutorial videos on TH-cam didn't stop you from making this video.

  • @coderawesome
    @coderawesome 3 ปีที่แล้ว

    The simplest explanation ever! Thanks a lot buddy!

  • @apuchitnis
    @apuchitnis 3 ปีที่แล้ว

    This is the best video out there about the event loop, thanks for making this 🙏

  • @headach09
    @headach09 ปีที่แล้ว

    I have to pause the video and give the positive comment. It is brilliant. Thanks for your effort.

  • @stefanoforgiarini339
    @stefanoforgiarini339 2 ปีที่แล้ว +1

    Thank you so much! This video is perfect. I've finally figured out what event loop Is!

  • @BleedingCode
    @BleedingCode 4 ปีที่แล้ว +1

    Great visual video easily explaining management of synchronous and asynchronous logic. Thanks

  • @azeez9273
    @azeez9273 ปีที่แล้ว

    Your approach to explained the concept of event loop was superb. Thank you.

  • @dinner4chiahao
    @dinner4chiahao 2 ปีที่แล้ว

    Brilliant, simple explanation. Thank you!

  • @sadikuzzamanshovon7598
    @sadikuzzamanshovon7598 2 ปีที่แล้ว

    Most Clear explanation. Learned a lot from this video.

  • @ash2ucool
    @ash2ucool 2 ปีที่แล้ว

    Just Wow!! This is the best way to learn event loop. Thank you so much

  • @coolbuddy2405
    @coolbuddy2405 4 ปีที่แล้ว +1

    Great Video! Appreciate your effort. Thanks, Koushik!

  • @AndiDrajan
    @AndiDrajan 3 ปีที่แล้ว

    Thank you! Short and very well explained.

  • @Alex-rt7de
    @Alex-rt7de 3 ปีที่แล้ว +1

    tons of one hour duration videos about event loop, beautiful presentations jokes and no concrete info, why there is not videos like this. short and clear

  • @mohnishbaker1792
    @mohnishbaker1792 3 ปีที่แล้ว

    The simplest are the most beautiful things. You proved it sir.

  • @pankajsharma9801
    @pankajsharma9801 2 ปีที่แล้ว

    Simple and clear explanations

  • @rajatsubhrachakraborti168
    @rajatsubhrachakraborti168 2 ปีที่แล้ว

    I don't usually comment in TH-cam. But the way you explained things were really extraordinary. A true teacher you are. Thanks mate for the help :o)

  • @omkarpatil470
    @omkarpatil470 2 ปีที่แล้ว

    Totally loved the way you explained Event Loop. Straight away subscribing :D

  • @theteamleader7678
    @theteamleader7678 ปีที่แล้ว

    This is a Master piece of explanation

  • @Omar-hw7zi
    @Omar-hw7zi 2 ปีที่แล้ว

    Amazing analogy.. straightforward!!!

  • @HabiburRahman-xs9gb
    @HabiburRahman-xs9gb ปีที่แล้ว

    The only video, that taught me something on this topic..thank you very much

  • @ThePakChina
    @ThePakChina 2 ปีที่แล้ว

    Following you since 2012 ... when i was start to learn JSP,Hibernate stuff. Thank bro

  • @stevehan3498
    @stevehan3498 4 ปีที่แล้ว

    always love your videos. you're such a great educator!

  • @Aayush28jun
    @Aayush28jun ปีที่แล้ว

    Definitely cleared all my doubts , sooo mooth of a tutorial. Bang on Example. Thanks a lot !

  • @jefe_t11
    @jefe_t11 ปีที่แล้ว

    What an amazing video. Great analogy and perfect delivery of explanation. Beauty!

  • @bipinjaiswal5654
    @bipinjaiswal5654 4 ปีที่แล้ว

    Thank you so much for your efforts.

  • @PP-pu3gi
    @PP-pu3gi 3 ปีที่แล้ว

    Really explained in a very simple and easy way ...understood clearly

  • @jacobthedev4979
    @jacobthedev4979 2 ปีที่แล้ว

    Wonderful video, simple and straight forward. The best way to acquire new knowledge!

  • @tomwhite341
    @tomwhite341 3 ปีที่แล้ว

    That was so clear, thank you

  • @ozgursulum4116
    @ozgursulum4116 2 ปีที่แล้ว

    Thank you for simple explanation it saved a lot of time for me.

  • @CoolITTrends
    @CoolITTrends 3 ปีที่แล้ว

    Excellent presentation of an important concept.

  • @vaayadipethapulla6964
    @vaayadipethapulla6964 3 ปีที่แล้ว

    No one can explain this better.amazing

  • @callmemanu
    @callmemanu 2 ปีที่แล้ว

    Now I could explain to someone what is an event loop? Really nice explanation with example.

  • @kevinmarmet
    @kevinmarmet 2 ปีที่แล้ว

    Wow. Concise. Well done 👍🏽

  • @smartguy3k
    @smartguy3k 3 ปีที่แล้ว

    Thank you for making it so easy.

  • @geraldtivatyi2116
    @geraldtivatyi2116 2 ปีที่แล้ว

    I cannot thank you enough for this explanation

  • @jitendraasole5827
    @jitendraasole5827 ปีที่แล้ว

    And that was the best video who explained the Event Loop

  • @hannahadams3507
    @hannahadams3507 2 ปีที่แล้ว

    a million thank you's for such a perfect explanation man

  • @sourabhsahu961
    @sourabhsahu961 4 ปีที่แล้ว +1

    Really missed you Kausik please please make videos frequently , I always eagerly waiting for your video they are always best as compared to other TH-cam videos

  • @vishalmishra1937
    @vishalmishra1937 2 ปีที่แล้ว

    Clear n crisp

  • @Samuftie
    @Samuftie 2 ปีที่แล้ว

    brilliant explanation. thanks.

  • @deepakarya5310
    @deepakarya5310 2 ปีที่แล้ว

    thank you very much i have watched many resource and got so confused...this cleared all my doubt

  • @maiaklimenko6614
    @maiaklimenko6614 ปีที่แล้ว

    Fantastic explanation, many thanks)

  • @kratostheinevitable3932
    @kratostheinevitable3932 2 ปีที่แล้ว +1

    amazing explanation. thanks.

  • @SakhawatHossainlive
    @SakhawatHossainlive 3 ปีที่แล้ว

    Wonderful explanation

  • @chriscfedrizzi
    @chriscfedrizzi ปีที่แล้ว

    Thank you sir, awesome explanation!

  • @ashutoshsahu5345
    @ashutoshsahu5345 3 ปีที่แล้ว

    Thanks alot sir ♥️ best video on this topic on yt

  • @4t196
    @4t196 2 ปีที่แล้ว

    Great animation and explanation

  • @nandlalushir252
    @nandlalushir252 3 ปีที่แล้ว

    Thanks for such informative video..

  • @natanminaev1501
    @natanminaev1501 2 ปีที่แล้ว +1

    thans, man. an ellegant explanation!

  • @suvadeepdutta3461
    @suvadeepdutta3461 2 ปีที่แล้ว

    Awesome explanation

  • @antoniopacheco6001
    @antoniopacheco6001 3 ปีที่แล้ว

    hey guy, im from brazil and i really apreciate your work, congratulations

  • @rajadastidar3765
    @rajadastidar3765 3 ปีที่แล้ว

    Very nice and understandable tutorial

  • @nagaveer3315
    @nagaveer3315 6 หลายเดือนก่อน

    Great explanation 🎉, thanks ✅

  • @kartikgupta5566
    @kartikgupta5566 11 หลายเดือนก่อน

    amazing explanation !

  • @abhishekverma5928
    @abhishekverma5928 4 ปีที่แล้ว

    Great fan of your video. Learn almost everything productive from your channel.please also make video on kubernates and docker.

  • @himanshitaneja1254
    @himanshitaneja1254 3 ปีที่แล้ว +1

    Awesome as always!! Thanks Sir. Keep enlightening us. God bless you with good health and all the happiness in the world! :)

  • @yyisyou
    @yyisyou 3 ปีที่แล้ว

    awesome explanation

  • @lavanyamanivannan6547
    @lavanyamanivannan6547 2 ปีที่แล้ว

    This is my first comment for a tech video, this was neat and clear . very good job! really appreciate your work.

  • @xyz_only_10x
    @xyz_only_10x 2 ปีที่แล้ว

    most underrated coding channel

  • @srinivasmudda8081
    @srinivasmudda8081 3 ปีที่แล้ว

    Koushik you are awesome ..The Best on youtube ..thank you and apreciate a lot for such amazing detailed conceptual videos..COULD YOU PLEASE DO A SERIES ON DATA STRUCTURES BOTH CONCEPTS AND IMPLEMENTATION IN JAVASCRIPT ..would be very grateful..Ty

  • @glauberbispocruzcarvalho2235
    @glauberbispocruzcarvalho2235 2 ปีที่แล้ว

    thanks dude that was a great explanation

  • @ankurchunekar1824
    @ankurchunekar1824 2 ปีที่แล้ว

    Thankyou for this video, it is very helpful. 💯

  • @ravianand6351
    @ravianand6351 4 ปีที่แล้ว +4

    Is it just a coincidence that when I was learning java and spring koushik was also into it, and I'm now learning javascript, he's also doing the same :)

    • @Java.Brains
      @Java.Brains  4 ปีที่แล้ว +8

      Yup, definitely stalking your learning path. Too bad you caught me! :)

    • @ravianand6351
      @ravianand6351 4 ปีที่แล้ว +3

      @@Java.Brains hah But seriously, you've helped me a lot, and many others ofcourse. I found out the java road map video to be very helpful. If you could bring a similar sort of video for javascript, it would be really helpful.

  • @ruslanyakushev9560
    @ruslanyakushev9560 3 ปีที่แล้ว

    You're brilliant!

  • @Kloster18
    @Kloster18 3 ปีที่แล้ว

    i loved this video, i finally understand!!

  • @js-love
    @js-love 4 ปีที่แล้ว

    Your explain in simplest form pls make more video on JavaScript ES6 and Callback .. appreciate your efforts

  • @marimuthur9456
    @marimuthur9456 2 ปีที่แล้ว

    Extraordinary you are really cool it's very useful to understand easily thank you so much 👌🏼👌🏼

  • @Fido1hn
    @Fido1hn 4 หลายเดือนก่อน

    Thank you this was a great video

  • @sachivaidya2339
    @sachivaidya2339 2 ปีที่แล้ว

    Well explained ✨✨

  • @vipinsharma-zx9cb
    @vipinsharma-zx9cb 3 ปีที่แล้ว

    You always post great videos, Thanks for your efforts ! I request you to also consider posting courses for front-end workflow tools used for building front end projects these days, its a mess :). GIT and CSS are also evolving each day... Thanks.

  • @rutvikdeshmukh6274
    @rutvikdeshmukh6274 2 ปีที่แล้ว

    best explanation ☺️

  • @kanha4790
    @kanha4790 12 วันที่ผ่านมา

    Event loop is a loop that are checking calstack continuously. if call stack is empty it push event that are waiting in event queue into the call stack for exicution perpose.

  • @MattiaRuberto
    @MattiaRuberto ปีที่แล้ว

    thank you! now is clear

  • @cashycash1
    @cashycash1 3 ปีที่แล้ว

    You are a legend thank you