Whats the Difference Between Callbacks and Promises?

Поделиться
HTML-код
  • Опубликовано: 28 сен 2024
  • In this video we are gonna take a look at what promises are, what callbacks are, and how they differ from each other in JavaScript.
    If you feel like you got some value out of this video, please drop a like! It really helps the channel :)
    --SUPPORT THE CHANNEL--
    If you would like to support the channel you can use the below link.
    I would like to stress that while it would be greatly appreciated, in no way is this required!
    link: www.paypal.com...

Комментарии • 62

  • @joaomonteiro7
    @joaomonteiro7 2 года назад +13

    really nice job , you are the first guy on youtube that I don't need to put on 1.5x

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

    absolute best explanation of promises and i’ve seen a dozen

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

    If I got a profesor like you in my back studies, I surely became a CTO at Google.
    Clearly explained. Thanks

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

    Dude your example made me clear after a lot of videos. Thanks✌🏼

  • @privatesocialhandle
    @privatesocialhandle Год назад +2

    The best explanation out there. The analogy, and the code example were perfect. I'm not even a developer but I needed to understand these fundamentals for something else.

  • @vakhtangnodadze4947
    @vakhtangnodadze4947 3 года назад +13

    You really do have great content. It's a shame you have so few subscribers and views, but I'm sure you'll get more. Just keep up the awesome work!
    Really love your interview question videos. I thin you make videos on good and important topics

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

      May be, just maybe slowing down in speaking might help.

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

    thankiuuu very much

  • @MuhammadIqbal-tw3mj
    @MuhammadIqbal-tw3mj 2 года назад +1

    What a great explanation. Thank you in advance!
    And it would be super super great explanation if you could talk a little bit slower. You know? Just to make sure that your "good message" delivered way more clearly and hit the right target 🔥
    Just my advice..

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

    You talk really quickly, but I think that's what kept my attention throughout the video. It worked for me - thanks for the explanation.👏

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

    Cooking pasta while talking on the phone while while feeding the cat while watching Coding With Chaim... Easy Enough xD

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

      haha this genuinely made me laugh

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

      @@CodingWithChaim I wish JS were that effective as well xD promises are kinda a headache tho. Good burger example but sometimes you just come back with your recept and they reject you because someone has already eaten your burger xD

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

      Nice I love where you’ve taken the analogy

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

    hare ram
    Very Nice Explaination👍👍
    I feel Lucky to be directly reach to your video on first attempt rather then go through many videos and may still didn't grasp the concept.
    hare ram

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

    Another great video... Love it.

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

    So much clear and to the point! Thanks man! 💝

  • @aminaleali7161
    @aminaleali7161 2 года назад +1

    Thank you. Love the videos

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

    Great explanation!

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

    keep up this quality content!

  • @YN.PICTURES
    @YN.PICTURES 2 года назад +1

    Sir, awesome👏😊

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

    very good explanation

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

    You are already on 2x speed uhh. Great explanation tho.

  • @ianluigilastra1850
    @ianluigilastra1850 8 месяцев назад

    what if you are ready to unpack the promise but the promise function is not yet done?

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

    I thought Ben Shapiro is talking fast 😁
    Good explanation! Thank you!

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

    Awesome!!! 👏🏻

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

    Who did check playback speed while listening him?

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

    Awesome

  • @jay00146
    @jay00146 2 года назад +1

    video was good but like teaching 1 hour course in 10 mins

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

    שכוייח

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

    Bro is that your bed?

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

    I'm so sad I wasted the first 3 minutes on this video TBH..

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

    Please slow down, I can't keep up!

    • @VishalSingh-bo2ow
      @VishalSingh-bo2ow 3 года назад +1

      well you can always control the speed of playback :)

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

    Your speed is like sporty car..Hold on

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

    U talked so fast!

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

    Content is good but you talk way too fast for me :(

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

    Too fast

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

    Good one.. I thought the playback speed was 1.25x but it was normal

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

    Man way too fast

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

    I was following along with this until the final stage where you had if(true) and you immediately invoked the then method on the promise. It wasn't clear whether that function that console.log's is still at the mercy of asynchronicity. By doing it immediately, surely the file won't have been read yet and therefore the console.log won't happen. It would only happen on the completion of the asynchronous file read. So you're not immediately unpacking the result, all you're really doing (I THINK) is specifying what will happen in the future when the then method gets called later. I need to watch more videos on promises. The only use case I currently see is the add listener pattern and for that I still don't see the advantage of this.

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

    Awesome

  • @securethebag1613
    @securethebag1613 6 месяцев назад +1

    slow down my boy. sheesh. thank god for playback speed .75

  • @iruga7379
    @iruga7379 2 года назад +1

    Omfg...whats wrong with teachers in these days...this dude alone blew up at least 6 teachers i was asking about this video theme and they all failed to explain to me.

  • @SandipSahoo-uo9wm
    @SandipSahoo-uo9wm 6 месяцев назад +1

    Why are you running ??

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

    Amazing explanation. Really appreciate it.

  • @starwaveprime7398
    @starwaveprime7398 2 года назад +1

    Another wow! Thank you!

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

    Incredible, thank you!

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

    you talk so fast! OMG

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

    Awesome video thanks Chaim!

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

      My pleasure! Really glad you found it useful!

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

    Wow, great video. I really liked it.

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

    Master!!! Great explanation!

  • @Sachin-qn1wf
    @Sachin-qn1wf Год назад

    Beautifully Explained!

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

    Awesome buddy