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

Sdílet
Vložit
  • čas přidán 26. 07. 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

Komentáře • 188

  • @yogeshjoshi388
    @yogeshjoshi388 Před 4 lety +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  Před 4 lety +9

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

    • @Saketjsaket
      @Saketjsaket Před 4 lety +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 Před 3 lety

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

    • @GaganKumar-ib5sg
      @GaganKumar-ib5sg Před 3 lety

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

    • @haidersalah1416
      @haidersalah1416 Před rokem

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

  • @u_ziben
    @u_ziben Před 3 lety +37

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

  • @zillalsenmesrane1022
    @zillalsenmesrane1022 Před rokem +2

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

  • @rajatmishra9993
    @rajatmishra9993 Před 4 lety +51

    I wish I can like this video a million times.

    • @dailyfacts1099
      @dailyfacts1099 Před 3 lety +1

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

    • @asitpurohit_108
      @asitpurohit_108 Před 2 lety

      Can be done using phython

    • @gatoloco1873
      @gatoloco1873 Před 2 lety

      Your likes would get stuck in the event queue

  • @nikhil1651998
    @nikhil1651998 Před 3 lety +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!

  • @PerpetualLearner8934
    @PerpetualLearner8934 Před 4 lety +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! :)

  • @deadchannel-x2m
    @deadchannel-x2m Před 3 lety +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!

  • @sreid70
    @sreid70 Před 4 lety +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 CZcams. Very well done. Permanent bookmark:-)

  • @nwobodogeorge5370
    @nwobodogeorge5370 Před 3 lety

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

  • @areyoukidding6274
    @areyoukidding6274 Před 3 lety +5

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

  • @khalidben9940
    @khalidben9940 Před 2 lety

    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

  • @devroy692
    @devroy692 Před 3 lety +2

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

  • @user-cc8he7dy9h
    @user-cc8he7dy9h Před 2 lety +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 CZcams lack, thank you very much for your efforts!

    • @kinstar
      @kinstar Před rokem

      sometimes the best explanations need to be in human terms 😅

  • @veerenderreddychama3190
    @veerenderreddychama3190 Před 3 lety +1

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

  • @zekss07
    @zekss07 Před 2 lety

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

  • @vivekmishra5876
    @vivekmishra5876 Před 4 lety +6

    This guy made my Weekend.
    Thanks koushik

  • @wanekaxa1483
    @wanekaxa1483 Před rokem

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

  • @youssefkhaled9418
    @youssefkhaled9418 Před rokem

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

  • @Hiroki-Takahashi
    @Hiroki-Takahashi Před 2 lety

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

  • @rahulbeniwal2230
    @rahulbeniwal2230 Před 2 lety

    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.

  • @amnishsingh9093
    @amnishsingh9093 Před rokem

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

  • @dj_tika
    @dj_tika Před 2 lety +2

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

  • @mohammadzaidhussain4903

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

  • @reynaoldman9100
    @reynaoldman9100 Před 2 lety +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 🙏🏻

  • @bernard2735
    @bernard2735 Před 4 lety +2

    Great, simple, clearly explained. Thanks mate.

  • @coolbuddy2405
    @coolbuddy2405 Před 4 lety +1

    Great Video! Appreciate your effort. Thanks, Koushik!

  • @headach09
    @headach09 Před rokem

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

  • @apuchitnis
    @apuchitnis Před 3 lety

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

  • @SumitKumar-co2pm
    @SumitKumar-co2pm Před 3 lety +1

    The best analogy to explain event loop. Thanks a lot

  • @omkarpatil470
    @omkarpatil470 Před 2 lety

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

  • @azeez9273
    @azeez9273 Před rokem

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

  • @rajatsubhrachakraborti168

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

  • @stefanoforgiarini339
    @stefanoforgiarini339 Před 2 lety +1

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

  • @coderawesome
    @coderawesome Před 3 lety

    The simplest explanation ever! Thanks a lot buddy!

  • @BleedingCode
    @BleedingCode Před 4 lety +1

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

  • @ThePakChina
    @ThePakChina Před 2 lety

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

  • @stevehan3498
    @stevehan3498 Před 3 lety

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

  • @ash2ucool
    @ash2ucool Před 2 lety

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

  • @sadikuzzamanshovon7598

    Most Clear explanation. Learned a lot from this video.

  • @Alex-rt7de
    @Alex-rt7de Před 3 lety +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

  • @dinner4chiahao
    @dinner4chiahao Před 2 lety

    Brilliant, simple explanation. Thank you!

  • @jacobthedev4979
    @jacobthedev4979 Před 2 lety

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

  • @mohnishbaker1792
    @mohnishbaker1792 Před 3 lety

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

  • @sourabhsahu961
    @sourabhsahu961 Před 4 lety +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 CZcams videos

  • @jefe_t11
    @jefe_t11 Před rokem

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

  • @lavanyamanivannan6547
    @lavanyamanivannan6547 Před 2 lety

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

  • @AndiDrajan
    @AndiDrajan Před 3 lety

    Thank you! Short and very well explained.

  • @Aayush28jun
    @Aayush28jun Před rokem

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

  • @Omar-hw7zi
    @Omar-hw7zi Před 2 lety

    Amazing analogy.. straightforward!!!

  • @kanha4790
    @kanha4790 Před 5 dny

    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.

  • @jitendraasole5827
    @jitendraasole5827 Před rokem

    And that was the best video who explained the Event Loop

  • @callmemanu
    @callmemanu Před 2 lety

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

  • @himanshitaneja1254
    @himanshitaneja1254 Před 3 lety +1

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

  • @theteamleader7678
    @theteamleader7678 Před rokem

    This is a Master piece of explanation

  • @xyz_only_10x
    @xyz_only_10x Před 2 lety

    most underrated coding channel

  • @pankajsharma9801
    @pankajsharma9801 Před 2 lety

    Simple and clear explanations

  • @kevinmarmet
    @kevinmarmet Před 2 lety

    Wow. Concise. Well done 👍🏽

  • @tomwhite341
    @tomwhite341 Před 3 lety

    That was so clear, thank you

  • @CoolITTrends
    @CoolITTrends Před 3 lety

    Excellent presentation of an important concept.

  • @HabiburRahman-xs9gb
    @HabiburRahman-xs9gb Před rokem

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

  • @bipinjaiswal5654
    @bipinjaiswal5654 Před 3 lety

    Thank you so much for your efforts.

  • @ravianand6351
    @ravianand6351 Před 4 lety +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  Před 4 lety +8

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

    • @ravianand6351
      @ravianand6351 Před 4 lety +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.

  • @PP-pu3gi
    @PP-pu3gi Před 3 lety

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

  • @vaayadipethapulla6964
    @vaayadipethapulla6964 Před 3 lety

    No one can explain this better.amazing

  • @antoniopacheco6001
    @antoniopacheco6001 Před 3 lety

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

  • @abhishekverma5928
    @abhishekverma5928 Před 4 lety

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

  • @vipinsharma-zx9cb
    @vipinsharma-zx9cb Před 3 lety

    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.

  • @ozgursulum4116
    @ozgursulum4116 Před 2 lety

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

  • @natanminaev1501
    @natanminaev1501 Před 2 lety +1

    thans, man. an ellegant explanation!

  • @maiaklimenko6614
    @maiaklimenko6614 Před rokem

    Fantastic explanation, many thanks)

  • @srinivasmudda8081
    @srinivasmudda8081 Před 3 lety

    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

  • @kratostheinevitable3932
    @kratostheinevitable3932 Před 2 lety +1

    amazing explanation. thanks.

  • @hannahadams3507
    @hannahadams3507 Před 2 lety

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

  • @smartguy3k
    @smartguy3k Před 3 lety

    Thank you for making it so easy.

  • @chriscfedrizzi
    @chriscfedrizzi Před rokem

    Thank you sir, awesome explanation!

  • @Samuftie
    @Samuftie Před rokem

    brilliant explanation. thanks.

  • @ashutoshsahu5345
    @ashutoshsahu5345 Před 3 lety

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

  • @deepakarya5310
    @deepakarya5310 Před 2 lety

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

  • @SakhawatHossainlive
    @SakhawatHossainlive Před 3 lety

    Wonderful explanation

  • @muwongenicholus2444
    @muwongenicholus2444 Před měsícem

    Great video man.

  • @ruslanyakushev9560
    @ruslanyakushev9560 Před 3 lety

    You're brilliant!

  • @kartikgupta5566
    @kartikgupta5566 Před 11 měsíci

    amazing explanation !

  • @nandlalushir252
    @nandlalushir252 Před 3 lety

    Thanks for such informative video..

  • @geraldtivatyi2116
    @geraldtivatyi2116 Před 2 lety

    I cannot thank you enough for this explanation

  • @suvadeepdutta3461
    @suvadeepdutta3461 Před 2 lety

    Awesome explanation

  • @js-love
    @js-love Před 4 lety

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

  • @33pranav
    @33pranav Před 4 lety +4

    Sir, please post more videos on Nodejs series.

  • @vishalmishra1937
    @vishalmishra1937 Před 2 lety

    Clear n crisp

  • @nagaveer3315
    @nagaveer3315 Před 6 měsíci

    Great explanation 🎉, thanks ✅

  • @mr.somebody646
    @mr.somebody646 Před 2 lety

    Amazing.... man I was really confused with this concept bt u know what this video completely cleared my doubt queue :)

  • @chandrahaslanka
    @chandrahaslanka Před 4 lety +1

    Hi Kaushik, great content and explanation as always. Could you also please explain macrotasks and microtasks as well? I've gone through some documentation on the same, but as you mentioned, they seems to be more complicated explanations.

  • @4t196
    @4t196 Před 2 lety

    Great animation and explanation

  • @ankurchunekar1824
    @ankurchunekar1824 Před 2 lety

    Thankyou for this video, it is very helpful. 💯

  • @Kloster18
    @Kloster18 Před 3 lety

    i loved this video, i finally understand!!

  • @virgilho4635
    @virgilho4635 Před 2 lety

    I love the animation as well as the poor waiter.😍

  • @Mvrck44
    @Mvrck44 Před 3 lety

    Loved it!

  • @rajadastidar3765
    @rajadastidar3765 Před 3 lety

    Very nice and understandable tutorial

  • @glauberbispocruzcarvalho2235

    thanks dude that was a great explanation

  • @yyisyou
    @yyisyou Před 3 lety

    awesome explanation

  • @marimuthur9456
    @marimuthur9456 Před 2 lety

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