What the heck is the event loop anyway? | Philip Roberts | JSConf EU

Поделиться
HTML-код
  • Опубликовано: 8 окт 2014
  • JavaScript programmers like to use words like, “event-loop”, “non-blocking”, “callback”, “asynchronous”, “single-threaded” and “concurrency”.
    We say things like “don’t block the event loop”, “make sure your code runs at 60 frames-per-second”, “well of course, it won’t work, that function is an asynchronous callback!”
    If you’re anything like me, you nod and agree, as if it’s all obvious, even though you don’t actually know what the words mean; and yet, finding good explanations of how JavaScript actually works isn’t all that easy, so let’s learn!
    With some handy visualisations, and fun hacks, let’s get an intuitive understanding of what happens when JavaScript runs.
    Transcript: 2014.jsconf.eu/speakers/philip...
    License: For reuse of this video under a more permissive license please get in touch with us. The speakers retain the copyright for their performances.
  • НаукаНаука

Комментарии • 1,7 тыс.

  • @sumanyusoniwal5194
    @sumanyusoniwal5194 2 месяца назад +86

    9 years later, and this is still pure gold.

    • @vitvitvitvitvitvitvitvit
      @vitvitvitvitvitvitvitvit 22 дня назад +1

      yeah, but now there are microTask queue too, which one is prioritized and execute the callbacks before task queue

  • @marios2liquid
    @marios2liquid 9 лет назад +4052

    This talk is the perfect example of "If you can't explain it simply, you don't understand it well enough". Well done Philip.

    • @MehdiRaash
      @MehdiRaash 4 года назад +14

      That's quit simple!

    • @JenJHayden
      @JenJHayden 4 года назад +4

      agreed

    • @gopalgplus
      @gopalgplus 4 года назад +2

      Agreed!

    • @pastuh
      @pastuh 4 года назад +11

      CS50 teacher explains very well too.. Sometimes i'm worried he will forget to breath..

    • @seongamkim4834
      @seongamkim4834 4 года назад

      That sounds wonderful.

  • @apoorvasa1026
    @apoorvasa1026 2 года назад +1298

    Today I had interview and was asked about execution context and i explained him based on this video. my interviewer was so impressed with the my answer. he said "This is the best explanation i have heard so far". made my day 🙂

  • @syedmuhammadibtisam441
    @syedmuhammadibtisam441 Год назад +459

    He understood it in 18 months, for me it took 26 minutes, that is how much he helped me, really appreciate it. Time is all you have. Thank you man!!!

  • @AndreOliveira-vq7iv
    @AndreOliveira-vq7iv 5 лет назад +405

    13:45
    "The event loop job is to look at the stack and look at the task queue. If the stack is empty, it takes the first thing on the queue and pushed it on to the stack."

    • @mementomori8856
      @mementomori8856 3 года назад +1

      what if there's multiple tasks in the queue ... and they'll get done in some order ... doesn't that make it a sync-function of it's world??

    • @mementomori8856
      @mementomori8856 3 года назад +1

      never mind ...

    • @khaledelnagar4135
      @khaledelnagar4135 3 года назад +50

      @@mementomori8856 it's async for you as a developer, but at the end, there has to be a queue for that poor single thread... serverless is serverless for you but at the end there has to be a server to run your code!

    • @viridianite
      @viridianite Год назад

      @@khaledelnagar4135 This makes no sense

    • @kaelon9170
      @kaelon9170 Год назад +5

      @@viridianite It does make sense, but only if you have some basic working knowledge or better on how multithreading works, and the fact that JS is still a single-threaded language despite supporting asynchronous code.

  • @luciferonetwothree2030
    @luciferonetwothree2030 5 лет назад +1421

    watching this in 2019, and it is still the best source to learn JS event loop.

    • @bennyrussell4966
      @bennyrussell4966 4 года назад +10

      couldn't agree more, just rewatched it there for a refresh

    • @castelocl
      @castelocl 4 года назад +32

      watching this in 2020

    • @petrd6173
      @petrd6173 4 года назад +4

      @@castelocl and still relevant!

    • @user-xb8bk1hd8s
      @user-xb8bk1hd8s 4 года назад +7

      still the best in 2020

    • @yuanmin6496
      @yuanmin6496 4 года назад

      @@user-xb8bk1hd8s I agree

  • @domaincontroller
    @domaincontroller 3 года назад +357

    00:53 how does javascript actually work ? 02:46 V8, setTimeout 04:03 the call tack 07:18 blocking, what happens when things are slow 10:35 aynchronous callbacks, setTimout 11:13 aynchronous callbacks, the call stack 11:56 concurrency 12:50 stack, webapis, eventloop, task queue, console

    • @FoysalAhmed-gd9sp
      @FoysalAhmed-gd9sp Год назад +25

      00:53 how does javascript actually work ?
      02:46 V8, setTimeout
      04:03 the call stack
      07:18 blocking, what happens when things are slow
      10:35 aynchronous callbacks, setTimout
      11:13 aynchronous callbacks, the call stack
      11:56 concurrency
      12:50 stack, webapis, eventloop, task queue, console

  • @R3fuge
    @R3fuge 2 года назад +90

    8 years ago and this is still my favorite explanation of the event loop. Brilliant communication.

  • @sunmustbedestroyed
    @sunmustbedestroyed 9 лет назад +1449

    I like this guy. He's so humble and explains things with such clarity - an for a universal audience. That's no easy feat.

  • @c3eb4
    @c3eb4 4 года назад +244

    i can't even express how much i appreciate this video. i watch it every couple of months as a refresher. and encourage my team to do the same.

  • @Hariharan-sh6bo
    @Hariharan-sh6bo 4 месяца назад +3

    Graduated in 2015, worked in JS alone for 4+ years, discovered this only today! Thank you

  • @jonsanders2069
    @jonsanders2069 6 лет назад +23

    I've returned to this video several times to engrain the concept of the event loop in my head. It's so clearly explained and so useful. Thanks so much for making it!

  • @manojmj5479
    @manojmj5479 5 лет назад +14

    This video is life-changing! Thank you for this, Philip! It takes great understanding to explain complex things in simple ways. And thank you for not gatekeeping - we need more people to come into tech and videos like this make sure that even noobs understand and can work with seemingly hard concepts!

  • @element3663
    @element3663 3 года назад +58

    This gave me a breakthrough moment in realizing how async JS actually works. Really good talk.

  • @thedevcyclist
    @thedevcyclist 8 лет назад +601

    Best event-loop explanation ever .... !!!

  • @hraynaud
    @hraynaud 8 лет назад +24

    This is by far one of the best presentations on any programming concept I've ever seen. Absolutely brilliant. Thank you!!

  • @sethfeingold
    @sethfeingold 4 года назад +5

    This will no doubt remain a fantastic presentation well into 2020 and beyond. Thank you, Philip!

  • @bharghavak
    @bharghavak Год назад

    Some explanations are so good that you understand the concept crystal clear. It really sticks with you, thank you.

  • @navaneethagastya
    @navaneethagastya 9 лет назад +28

    Really, Amazing talk, bro! :)
    Once I came up across a scenario where calling a function, say "func()" did not work rather, setTimeout(func, 0) worked!
    Now, I understood the reason completely!! :)

  • @MelMacaluso
    @MelMacaluso 5 лет назад +10

    Genius talk, seriously. Not hiding behind many fancy technicalities and being able to still convey high-level concepts and make them understandable is surely not an easy skill. Props!

  • @agusmoles
    @agusmoles 5 лет назад +27

    2019 and this is still awesome. Great explanation!

  • @mdmobasshir595
    @mdmobasshir595 11 месяцев назад +1

    8 years down the lane for this video, current in year 2023. Buffering through many videos on event loop still find this one the best. The energy of this man...can feel it on screen as well. Wish i could attend his session once in my life in person.

  • @chunk1978
    @chunk1978 5 лет назад +5

    This is by far the most informative and accessible talks about asynchronous functionality in JavaScript. Thanks, Philip, for showing us the light.

  • @JoseSotoCanHelp
    @JoseSotoCanHelp 9 лет назад +10

    When I watched this video, I knew it would prove useful for my work. Less than a month later, it happened. Thank you for the great presentation!!

  • @msbecks3806
    @msbecks3806 3 года назад +1

    Honestly, your explanation is down-to-earth for the understanding of
    all. Great work!

  • @inordirection_
    @inordirection_ 2 года назад +7

    I've been watching some interviews and mocks preparing for my own, and people nebulously reference 'the event loop' and single-threadedness very often, like "How does X work?" "ahh, the event loop", but more in a buzzword way than as an explanation, so thank you for this video. It was super helpful

  • @nadiar.syaripul
    @nadiar.syaripul 8 лет назад +840

    this video changed my life,.. great

    • @babas_babas
      @babas_babas 8 лет назад

      +Nadiar AS Same, his show is really clear, I learned so much thanks to him :p

    • @jonnieve2483
      @jonnieve2483 7 лет назад +1

      Yeah, awesome presentation

    • @lakshithaweerakkody5326
      @lakshithaweerakkody5326 6 лет назад +1

      Truly is. Mine too. Simply Brilliant Video

    • @aishahale5504
      @aishahale5504 5 лет назад +5

      You need to know about Tony Alecia

    • @Gigusx
      @Gigusx 5 лет назад

      lol.

  • @carlellis9647
    @carlellis9647 3 года назад +5

    This is one of the best lectures on JavaScript that I've seen anywhere. Phillip does a great job of using visualization to explain some of the more complicated aspects of JavaScript programming while making it look easy. That's truly commendable.

  • @OwenMcKenna
    @OwenMcKenna 14 дней назад +1

    His tool, Loupe, which he introduces here, visualises the JS runtime at run time. 🌟 Just brilliant. 🌟
    I wish I had seen this demo 10 years ago.

  • @idrisawedazubair2562
    @idrisawedazubair2562 9 месяцев назад +1

    I've literally read many articles trying to understand this very well, but now I think I do. His explanation is amazing.

  • @kikevanegazz325
    @kikevanegazz325 Год назад +1

    There are really no words to say how great this talk was. Amazingly clear, fun, and straight to the point.

  • @ManasGupta_mag
    @ManasGupta_mag 7 лет назад +71

    This guy just cleared the stack for my callback queue of understanding javascript to execute.
    Great explanation.

    • @Nadrioc
      @Nadrioc 4 года назад

      @@xxicenturyfuck1195 He mentions he used Keynote, which is the powerpoint for Apple software. There a ton of tutorials online showing how to do animations

  • @maximpekarsky7266
    @maximpekarsky7266 2 года назад +5

    This was my introduction to great conference talks, and, I really believe, one of the experiences that turned me from hobbyist to developer.

  • @Middollo
    @Middollo Год назад +1

    I find myself coming back to this talk as i progress in my career as a JS developer. I think this is my third time watching it, it gets better every time. Well done.

  • @BlueTreeCode
    @BlueTreeCode 5 лет назад +1

    Honestly one of the best videos I've come across. Everything is explained so clearly. He Is excellent at what he does and I hope to hear more from him!

  • @rameshwari
    @rameshwari 3 года назад +40

    Wow... amazing lecture. The way he is explaining is great. I wish a whole JS course should be taught by him.

  • @MrLiudongtony
    @MrLiudongtony 3 года назад +8

    Watched it at the end of year 2020 and it is still one of the best in its kind to explain the event loop.

  • @dushyantsabharwal6706
    @dushyantsabharwal6706 4 года назад +2

    Its not just the content of the video that is amazing but also the slides are done so nicely and as a speaker i know making a simpler presentation on a technical topic is very hard. Kudos Philip!

  • @djkater
    @djkater 7 лет назад +792

    the gareth bale of js!

  • @sushilkumartechy
    @sushilkumartechy 7 лет назад +116

    thanks @Philip Roberts first time I completely understand event loop :). If you have some other video on js please share.

    • @aishahale5504
      @aishahale5504 5 лет назад +4

      Javascript Understanding the weird parts

    • @NishadAhsan
      @NishadAhsan 4 года назад

      @@aishahale5504 Different author.

    • @aishahale5504
      @aishahale5504 4 года назад

      @@NishadAhsan Yes, try it.

  • @arinspanner
    @arinspanner 2 года назад

    I love this talk, he explains asynchronous code so it's totally intuitive and clear. Thanks Philip!

  • @abhinavgupta1846
    @abhinavgupta1846 2 года назад

    By far the best explanation of the JS event loop I ever came across. Must watch for every JS lover out there!

  • @johnnychan6755
    @johnnychan6755 8 лет назад +15

    I have been trying very hard understanding this whole JavaScript event-loop, callback, and asynchronous concepts for WEEKS (and failed), despite tons of google searches, article readings and tutorials. I think I finally "got it" after watching this video. So thank you SO MUCH for the talk Philip!!! (and thanks for sharing this JSConf!). I sense "hope"... in understanding and using JavaScripts :)

  • @DanielRamBeats
    @DanielRamBeats 8 лет назад +3

    Really awesome talk, I knew conceptually what was happening in the event ques prior to watching this, but the visualizations clarify it so well.

  • @msshwetap7095
    @msshwetap7095 3 года назад +1

    This explanation changes my life every time I watch it. Thank you!

  • @aminukano_
    @aminukano_ 4 года назад +1

    I just pause while watching to recheck the speaker's name, wondering that we still have such great speakers.
    This is by far the best tech conference talk I ever watched in my life!!

  • @guilhermeferreirabr
    @guilhermeferreirabr 2 года назад +4

    Funny how many "senior" JS devs think that they are clever AF because they interview you with this kind of questions but, in here, he managed to explain so clearly these concepts that destroy all the "mystery" of these guys intelligence ...
    What an awesome explanation! Simple and sharp!

  • @AshokDey
    @AshokDey 7 лет назад +35

    It's the first time I'm giving a comment in 7 years. This guy did such a great presentation. It was fantastic. Such a complex topic broken down into small lucid chunks ! Great work.

    • @Martinit0
      @Martinit0 2 года назад +5

      Puh, hey I'm your callback. Why did you queue me with 5 years delay?

  • @sredna3714
    @sredna3714 5 лет назад +1

    So helpful! Great video. I've been learning computer science for years and you still explained all of this better than any professor I've had. Major kuddos to you :)

  • @gerryramosftw
    @gerryramosftw 3 года назад

    holy crap this talk was from 6 years ago, still the best video I've watched on explaining javascript event loop in 2020

  • @okikiolaosunronbi8766
    @okikiolaosunronbi8766 Год назад +3

    This has to be one of the best explanations out there about the event loop.

  • @DecaSpace
    @DecaSpace 7 лет назад +24

    The intro music tho.... I turned off the lights and got my glowstick game on. He's amazing. It was an excellent video. My ADHD did not kicked in ever while watching it. 10/10. Will buy again.

  • @deepakkj
    @deepakkj 5 лет назад

    No one can explain better than this guy. So far the best demo I have ever seen on jsconf videos

  • @4ndrs_dev
    @4ndrs_dev 11 месяцев назад

    I love this talk so much. Can't help but keep coming to watch again every few months.

  • @joshdellay3603
    @joshdellay3603 9 лет назад +6

    Talk about boss mode, great work by Philip! The loop tool he created is amazing for helping to visualize the runtime, event queue/loop and web api! I can only imagine the time that went into creating and researching how to build it and you can see by his facial expression how much of a challenge it must have been hahah!

  • @nshettys
    @nshettys 4 года назад

    Just one word...FANTASTIC. Thanks a lot. You deserve a standing ovation

  • @v4raziel
    @v4raziel 3 года назад

    Thank you phillips. i been programming from 12-14 years. never come i across to understand event loop. thank you so simply explained.

  • @prashantchauhan1360
    @prashantchauhan1360 Год назад +3

    One of the best js videos till today. I wonder it was uploaded 8 years ago. If i would have watched then I would be that much AOT (Ahead of time).

  • @shalizi1280
    @shalizi1280 8 лет назад +30

    This is absolutely a marvelous explanation of event loops within javascript. It doesn't get better than this, thank you.

    • @yeshiqing8929
      @yeshiqing8929 6 лет назад

      Do you know what the ppt is made by? I like the ppt style(animation most). but i think the microsoft ppt is so heavy

    • @4Y0P
      @4Y0P 5 лет назад

      Ye Shiqing its made in keynote

  • @fhc9916
    @fhc9916 4 года назад +1

    Probably one of the best talks I've seen in recent times.

  • @dynamic75
    @dynamic75 3 года назад

    Thank you for breaking down these concepts into more digestible pieces, still trying to comprehend all of the details but I get the overall idea.
    Great job!

  • @BURN-ADDiCT
    @BURN-ADDiCT 2 года назад +8

    "I did not do a computer science degree, so these words... they're words"
    I relate so so deeply with that

  • @ClaymorePT
    @ClaymorePT 7 лет назад +37

    From someone who does not have a degree in computer science, I have to say, this is one hell of a good explanation!
    I only which that the teachers that I had during my CS degree, explained things as good as this guy.
    Really awesome!

  • @kandysman86
    @kandysman86 5 лет назад

    This was an awesome talk, and i love the tool this dude built. He has changed the way i look at writting my JS.

  • @justadev____7232
    @justadev____7232 3 года назад +1

    Mind blown!!!!! The lightbulb just turned on. THANK YOU!!!!!!

  • @sahilattri51
    @sahilattri51 8 лет назад +8

    brilliance! Absolutely stunning. Thank you

  • @andriciandu
    @andriciandu 5 лет назад +293

    For videos like this, youtube should implement a multi-thumbs-up system.

    • @RockDavid
      @RockDavid 4 года назад +5

      They already do, how else you think Fake news is so "Popular" these days

    • @coldblackice
      @coldblackice 2 года назад

      @@RockDavid I think you misunderstood what he was meaning.

  • @kevinbuffington4008
    @kevinbuffington4008 2 года назад

    I randomly watched this video a week or two before I went on a job interview five years ago. The event loop came up in some advanced JS discussion and I'm convinced it's a big part of why I got the job. Got another interview coming up and I figured I should probably revisit this just to make sure I still remember it. Still just as informative as I recall.

  • @user-lu7dm2fg2x
    @user-lu7dm2fg2x 4 месяца назад

    This video was an absolute gem - 26 minutes well spent! Thankyou so much for this.

  • @nosajghoul
    @nosajghoul 9 лет назад +123

    @19:18 you can see his history. I found it reassuring that a guy with this level of knowledge still has to look up the syntax for Date(). :-) Great dissection of the event loop.

    • @timeslowingdown
      @timeslowingdown 5 лет назад +65

      Good example of why code interviews that just test how well someone has memorized various language apis/functions are an ineffective way to determine the candidate's knowledge :)

    • @lighterinthestorm
      @lighterinthestorm 4 года назад +2

      @@timeslowingdown None of those tests actually check if you have those things memorized. All those tests are there to see how you look for the best available solution

    • @timeslowingdown
      @timeslowingdown 4 года назад +9

      @@lighterinthestorm Finding the solution to a single function with input and output is very different than writing an entire application or maintaining it, so I beg to differ

    • @kotekutalia
      @kotekutalia 4 года назад +2

      That's why Incognito Mode exists

    • @theshermantanker7043
      @theshermantanker7043 3 года назад +3

      Remembering the correct parameters for a function in a library is not a prerequisite for being a good developer, in the same way that needing a calculator in a math exam doesn't mean you're cheating. If you like calculating or memorising sure go ahead, but if you're lazy it's fine

  • @theyoutubeliva
    @theyoutubeliva 5 месяцев назад

    honestly this is the best convo about js runtime ive ever listened. thank you phil!

  • @parveznawaz99
    @parveznawaz99 2 месяца назад

    Philip describes the event loop mechanism in a perfect way. Lots of love and respect.

  • @syedbaryalay5849
    @syedbaryalay5849 5 лет назад +4

    worth every second, watching it the second time.

  • @tak68tak
    @tak68tak 5 лет назад +3

    the best video ever seen. it's still awesome in 2019!

  • @cronus663
    @cronus663 2 года назад

    I remember I watched it back in 2016, and now in 2022, I came back to check if it was as good as I remember, and... yes, it's definitively is. There's a real good stuff here, congrats Philip!

  • @ighsight
    @ighsight 2 года назад

    Brilliant. No question that this talk opened up new doors for this young man.

  • @timzhang8751
    @timzhang8751 4 года назад +17

    watching this is 2020, and it is still the best source to learn JS event loop.

  • @juanmanueltoni2506
    @juanmanueltoni2506 9 лет назад +7

    Amazing,!! the best and simplest explanation I've seen, thanks

  • @azur3125
    @azur3125 3 месяца назад

    This might be one of the best lectures/presentations I have ever seen. So clear and makes the topic easy to understand. Fabulous work!

  • @rimoros.1020
    @rimoros.1020 3 года назад +1

    Didn't realize this was 6 and a half years ago, still the best explanation and the only explanation I need!

  • @Josematube
    @Josematube 8 лет назад +239

    Great explanation.

  • @mohammedelhadididi4612
    @mohammedelhadididi4612 3 года назад +3

    This lecture is just a masterpiece

  • @mryildiz702
    @mryildiz702 2 года назад

    After 5 days It will be 2022, and this is still the best introduction to the event-loop ever. Thank you :)

  • @mohamedkamel7915
    @mohamedkamel7915 Год назад

    one of the best if not the best explanation on this particular topic.
    Philip you really are amazing, keep up the good stuff

  • @rahulraut1569
    @rahulraut1569 5 лет назад +5

    This video has helped me cracking interviews!! Thanks Man!

  • @TheHolyReality
    @TheHolyReality 7 лет назад +166

    Interesting how no textbooks mention this stuff wich in my opinion is crucial in understanding core javascript and especially closures (especially when every example on closures out there contains *for* loop with setTimeout and never explains or even mentions event loop and why does *for* loop first finish its iterations and then invokes setTimeout callbacks)

    • @ihateslowcars
      @ihateslowcars 7 лет назад +7

      I just made the connection with what you're saying! It finally makes sense!

    • @johnb1391
      @johnb1391 6 лет назад +28

      What he means is that a very common practice question given to novices to see if they understand closures is the following:
      const arr = [0,1,2,3];
      for (var i = 0; i < arr.length; i++) {
      setTimeout(function() {
      console.log('index ' + i + ', value: ' + arr[i]);
      }, 3000);
      }
      //Prints 'index 4, value: undefined'
      The issue here is that because var is function scoped and not block scoped, i will break out of the loop when it hits the value 4 (as i will now equal arr.length, breaking the test of the for loop). As index 4 is out-of-bounds, it returns undefined as the value for arr[4]. Closures via something like the let keyword mitigate this problem, however. So the test in question is to see whether or not the novice understands the issues of closure with var versus the new block-level variable definers: let and const.

    • @raulnoheagoodness
      @raulnoheagoodness 6 лет назад +2

      Javascript: The Good Parts by Doug Crockford explains closures very well. Also function-orientation. Other core JS lang features, but not the event loop.

    • @chriscorrigan14
      @chriscorrigan14 5 лет назад +12

      @@johnb1391 Or maybe a less granular way to explain it is: once the for loop is done setting up the setTimeout callbacks, it is finished, and the variable is at its final value of 4. Meanwhile the callbacks run for 3 seconds each, and they are still active - when they print the value of i, it is always 4 (unexpected). You can create closures around the timeout function value to keep the value of i as it was when the callback was created, by either passing it to a function outside of the loop to create the callback, or just making that setTimeout function an IIFE - immediately invoking it creates the closure while the i is still at its iterative value.
      Well I guess that was more words lol. Is there any simple way to explain closures?

    • @boliussa
      @boliussa 4 года назад

      @@chriscorrigan14 thanks that's a great explanation,, can you include some code examples for "You can create closures around the timeout function value to keep the value of i as it was when the callback was created, by either passing it to a function outside of the loop to create the callback, or just making that setTimeout function an IIFE "?

  • @braunbaerhh
    @braunbaerhh 3 года назад +2

    7 years later some things have changed. Now we have service workers in a seperate thread. And we have await/async functions. But yes, this talk makes the things clearer to understand. thank you!

  • @Mindphaser1
    @Mindphaser1 4 года назад +1

    For anyone interested: the audio snippet at the beginning of the video is Ellen Allien - Sensucht. I recognized that track right away.

  • @CodeSynergy
    @CodeSynergy Год назад +3

    oh, that was in 2014 and I thought it is the latest talk, amazing!

  • @user-sl6zf3te7t
    @user-sl6zf3te7t 3 года назад +3

    Рассказ, понятней чем этот мне ни разу не встречались. Спасибо большое за видео и за перевод

  • @tjmcode
    @tjmcode Год назад

    BRILLANT. Thank you, this finally allowed me to make sense of JS and the Browser execution as a lifelong Assembly Language programmer.

  • @kwstasl2
    @kwstasl2 8 лет назад +7

    Great explanation! Just one note: at 23:35 , lines 12 and 13, I think it should instead be
    array.forEach(function (i) {
    setTimeout(cb, 0, i);
    or else the array element will not be passed to the callback and console.log() will log them as 'undefined'.

  • @gnclmorais
    @gnclmorais 8 лет назад +6

    Excellent presentation! 👏👏👏

  • @AlayDhagia
    @AlayDhagia 4 года назад

    I knew the concept of event loop but man your explanation is simply amazing. Thanks a lot for putting this up !!

  • @kerompo25
    @kerompo25 3 месяца назад

    One of the best videos on event loop I've seen. The examples, animations of queue and stack are very clear and I've got almost everything, although I'm just starting to learn async functions in JavaScript
    Thank you for this great explanation!

  • @mbasitbilal
    @mbasitbilal 7 лет назад +6

    best explanation ever ! literally

  • @NaveenRawat51
    @NaveenRawat51 5 лет назад

    One of the best videos from JSConf. the way you expalined everything is very nice and anyone can understand the things. Thank you JSConfig :-)

  • @ritwiksen1987
    @ritwiksen1987 2 года назад

    A succinct video on the Event loop presented with tremendous clarity. Thank you!

  • @oksanaserhiivna2634
    @oksanaserhiivna2634 5 лет назад +5

    Fantastic explanation!!!

  • @teamworkucla
    @teamworkucla 8 лет назад +6

    Well explained! Thank you.