JavaScript Promises for Complete Beginners

Поделиться
HTML-код
  • Опубликовано: 2 ноя 2024

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

  • @Aram64
    @Aram64 3 года назад +44

    By far, the best explanation of Promise. Breaking everything by details, you also mentioned that resolve and reject are functions, not just arguments, and you pointed out that massages of resolve and reject are automatically passed into functions inside then and catch, lot of people ignoring those parts when explaining Promise which leeds to confusions. Great job.

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

      Exactly right. I, too, listen for accuracy in an explanation and observed in addition to these issues that he explicitly said there is one argument to the constructor "A function" containing two parameters. I have heard others say there are two parameters to the constructor. Best explanation.

  • @Human_Evolution-
    @Human_Evolution- 3 года назад +25

    After 4 hours of videos and text on promises, this video makes the most sense. Nobody made certain things clear like you. Great job.

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

    best video on promises ever. resolved.

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

    Tried to learn about promises when watching several different videos about a couple weeks ago. Got frustrated and put it aside. Found this one today and it taught me in 15 minutes what probably 45 minutes of other videos couldn't make as clear. Thank you so much for you clear and informative explanation!

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

    OMG!!! Finally a well-presented video on this topic. I have been struggling with this for about 2 days. Not wanting to go through the motions only and I actually wanted to understand the why...which now I finally do. Thank you.

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

    I literally quit learning javascript three times after hitting a wall not being able to understand promises until I found (but really, searched for!) this video.
    Out of every learning resource, bootcamp, course I’ve taken this is the only video that has succeeded in clearly explaining the nature of how values flow from the promise to the callbacks. I don’t know why other instructors don’t take the few minutes it took you to explain that resolve and reject are methods and that they are actually doing something instead of leaving students wondering how the heck an external function is magically receiving values that shouldn’t be within its scope!!
    Thank you sincerely for your outstanding pedagogy. I wish you and your channel nothing but success and thank you for bringing me peace of mind. It is so incredibly frustrating to go from confidence and order learning everything and then suddenly hitting a topic that seems to at first glance to a new student appear to involve multiple concepts that were not previously taught, but now you’ve helped me see the relationships are coherent.

  • @kettenbach
    @kettenbach 3 года назад +38

    Quite possibly the best explanation I've ever seen for promises. Well done sir. 😍🙏

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

    I skipped a ton of videos only for me to discover this gem. Best explanation by far!!

  • @Johannes00
    @Johannes00 3 года назад +10

    Wow, I wish more programming tutorials were simplified like this!
    Thank you!

  • @viv_7475
    @viv_7475 3 года назад +4

    This was the simplest explanation of promises I've ever seen. It was very useful to me. Well done sir.

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

    It's a god's gift to explain complex things in a simple manner,thanks man

  • @SankarP-k1m
    @SankarP-k1m 9 месяцев назад

    I'm struggling for 2 weeks, but you helped solve my issue in 10 mins.Thanks for the
    clear explanation

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

    I've watched several videos on promises, and this is easily the best. The only one that even came close to teaching the concept in an understandable way. Thank you!

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

    The way the JS Promise is explained in this video is fantastic.Kudos to Code Evolution!!

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

    I've watched so many videos about Promises and this is THE BEST

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

    Brilliant explanation. I have been watching several RUclips videos on Promises and this is the first one I've watched where I feel like I understand them. I appreciate your thorough breakdown and how you take care to mention simple but important details which every other video I've seen overlooks. Your analogy was also very effective. Thank you

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

    JavaScript promises are really misunderstood among a lot of people. I was asked about promises in every interview I did last year also. It's a very vital part of being a JavaScript developer. Thanks for the refresh. See you soon!

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

    Finally a video actually geared towards beginners that makes sense! Thank you!!

  • @deepakkj
    @deepakkj 3 года назад +12

    Great presentation. This just brushed up my basics again! ❤️👍

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

    Starting around 13:15, *The message displayed at the bottom of the video screen for the "reject" case is wrong* : It should be 'Not bringing tacos. Food truck not there.' but the video shows 'Cannot bring tacos'
    Of course, this is just a tiny careless error. Thank you for this good tutorial.

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

    This is without a doubt the best tutorial I've seen about promises, and I've seen a lot to try to understand this topic. Well done!!

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

    This is truly beginner friendly , Thank you!

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

    this is great, no one has gotten through to me that resolve and reject are FUNCTIONS the change the STATUS of the promise. This was a key gap for me.

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

    Best explanation I ever seen !! 🤩 Thank you so much for this video 🙏

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

    best explanation of “Promise” in RUclips

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

    😮 i am very surprised, the best tutorial ever , I understood everything in less than 15min , thank you so much for this wonderful tutorial

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

    I, too, listen for accuracy in an explanation and observed that you explicitly said there is one argument to the constructor "A function" containing two parameters. I have heard others say there are two parameters to the constructor. Thank you for your well-thought-out explanation.

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

    Excellent !! I agree with Aram, Chris and others here. Thank you !❤❤

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

    Easily the most digestible explanation of Promises I have seen

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

    YOU ARE AMAZING!!!!! THANK YOU FOR THIS CLEAR EXPLANATION!!!

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

    You are the man, I had been going nuts over the past few days trying to understanding this

  • @bevel1702
    @bevel1702 2 года назад +2

    Absolutely crystal clear for me now thank you so much!

  • @SaifulIslam-maahi
    @SaifulIslam-maahi Год назад

    best ever video, if you want to have clear concept about js promise.
    salute for content creator

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

    The best explanation of promise, indeed. You're the best. Can't get more clear explanation of promise other than this.

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

    Wow, hat's off to you!!! I have watched countless videos on promises and couldn't understand. But your explanation is so logical and step by step that I understood everything. You're such a good tutor!!! Thank you! However, a real world example would have been the icing on the cake :P Also I love your accent, very relaxing :)

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

    Probably the best explanation ever on youtube regarding promise

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

    This is a really clear explanation for beginners! Thanks a lot!

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

    This is the best explanation I’ve seen so far.

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

    This was a great explanation ... I'm now more knowledgeable about promises and hungry for Tacos!. Thank you!

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

    I was so lucky to see your video! Thank you for your great lesson! It's not only about JS Promise but also on pedagogics, on how to make hard things easy! How come my academic PHD professors never teach like this? I also wonder why just few people viewed and liked such a great and unique video?

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

    Perfectly explained with a practical example.

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

    Definitely the best explanation of such a cumbersome topic!

  • @bopaiahm.d1063
    @bopaiahm.d1063 3 года назад +2

    I like the clarity in each word and real time example you gave :) Great Job Buddy ..

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

    Finally I understood promises🙂 thanks to you sir

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

    Omg finally some persuasive explanation .this had ended my suffering on trying to understand promisses it is really hard to understand this one when your just jumping left and right to different youtubers because they have different oppinions. But yeah ill stick to this one

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

    Thank you for making this super clear! 15 minutes and it was explained perfectly.

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

    Absolutely marvelous way of teaching
    You got yourself a new subscriber!!

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

    I love vishwass ; His is the best tutor, he simplifies everything like drinking water

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

    Your way on explaining things are insane!

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

    very very good explanation, simple and detailed, visually easy to understand. The best explanation about Js Promise.

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

    The best 🔥🔥🔥. With just the analogy I have an idea of promises

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

    Best explanation I have seen for promises
    Thank you so much

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

    As always very well explained and very easy to understand.
    Thank you ❤

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

    You are the best teacher on this planet :)

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

    Thank You for such a simple explaination Hatsoff to your knowledge and presentation skills

  • @NOOB_RIDER-177
    @NOOB_RIDER-177 2 года назад

    🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏
    Many many many many many thanks to you Sir. I watch many videos in youtube but the level of simplicity and details which you give here is just awesome.
    Please make a series on how to call rest API from js without any library. If the rest API is from "Spring-Boot" it will be awsome just awesome.
    🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏

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

    Best video to understand Promises

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

    Highly recommend,Best explanation

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

    awesome explanation, it helped me to understand promises a whole lot easier

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

    Clearly explained! Thank you!

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

    Very clear and to the point. Great video.

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

    thanks, you helped me a lot, i'm struggling with Promises and callbacks

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

    i have seen 3 other videos but urs is small but to the point !! best explained

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

    Thank you for the tutorial , would love some content about the DOM

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

    Awsm, I am a new learner but you taught in a simplified way.

  • @hananfadah
    @hananfadah 10 месяцев назад

    Thanks a lot. Your great explanation was so helpful.

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

    thank you so much for this beautiful explanation.

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

    Best video Ever🙏Thanks

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

    best way to describe this topic

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

    Best explaination ever.

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

    Very well detailed and nicely explained.

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

    Nice explanation. Worth watching it.

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

    Crisp and on point. Good work👌

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

    Gained most of the knowledge from your channel .
    Thanks

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

    Great content. Play @ 1.25x speed for best experience !

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

    Thank you Sir for the lecture.

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

    thank you sir, great explanation

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

    Explanation is sooooooo good

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

    I promise, after I've gotten a job, I'll send some $ to your Paypal. I really promise. I wonder, how this tutorial could be free! Salute and Respect Sir.

  • @AmitSingh-fs2ot
    @AmitSingh-fs2ot Год назад

    Awesome explanation

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

    Veryy clear explanation

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

    Best explanation 🚀🔥

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

    great explanation.

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

    Just awesome ❤️❤️

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

    Nice explanation Sir

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

    quality content!

  • @sunnyraj7827
    @sunnyraj7827 Месяц назад

    Thanks a lot. ✨

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

    Sir, please make playlists on angular 10

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

    Easy to understand

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

    Hope you will continue with VUE JS course. Waiting for more videos on VUE

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

    This was really simplified to the bare bones.
    However, as an observation, shouldn't the first line of the output for error be:
    Not bringing tacos. Food truck not there.
    _instead of just_
    Cannot bring tacos?

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

    First, thank you so much for the video. Great job :-)
    Second, at 4:28, what exactly is meant by "proxy"? Can you put it in layman's terms?
    Thanks,

    • @syscall-y9i
      @syscall-y9i 2 года назад

      When you have to go to the college but you realise you won't make it in time of attendance roll call and you ask your friend on phone to mark present in the attendance for you. He's being a proxy for you at that moment.
      Now the defination again:
      "A promise is a proxy for a value that will eventually be available"
      > Promise is your physical presence in the school
      > Proxy is your friend marking the roll call for you

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

      @@syscall-y9i thanks for taking the time to reply :-))

    • @syscall-y9i
      @syscall-y9i 2 года назад +1

      @@farazk9729 I know it's late but why not leave a comment for future Devs 🗿🌻

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

      @@syscall-y9i 😀😃

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

    I did have a question on something I didnt understand , if anyone could help. When he said that resolve and reject were arguments of the function inside new Promise , are they actually parameters. I was confused by this because you change the (resolve, reject) into anything and still get the same result.
    So it seemed like there were two different versions of resolve and reject. One that is only the placeholder or parameter that can be named anything / and Two being the actual method that is being called when the promise is running.
    Do I have that right , I cant seem to figure out how else one can explain how the parameters ( resolve, reject) can be changed to any other word while still getting the same result.

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

    Make video on async await also. Much needed.

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

    2 questions:
    1- why can't I use a simple if statement rather than a promise?
    2- why do I have to wait some time when I could return the result instantly? I'm talking about setTimeout

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

    Thanks!

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

    great content

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

    finally understand 😍

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

    Thaaaaank you very much sir!
    Now I got on how to use promise… but what makes my promise to be resolved or rejected? 🤔

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

    why reject text is 'Not bringing tacos. Food truck not there.' but the console log text is 'Cannot bringing tacos'