Javascript Promises Tutorial with Examples

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 ก.ย. 2024

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

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

    OMG after watching many vids on this subject and slowely getting closer to really grasp and understand THIS video really made it happen!!!! This is a great explanation!!!! I really needed this.. Thank you very very very much for making this! much love.. Im gonna sub and check more of your vids!

  • @petetracy8757
    @petetracy8757 3 ปีที่แล้ว +20

    This is the sixth video I've watched on promises and the first one that explained just what they are so I understood it. Good Job!

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

      Great to hear it!

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

    Promises have been pretty difficult for me to learn. Its rarely taught in a clean organized way. However, I wrote a pretty complicated program using promises today and I'm glad I figured it out. Thank you a ton for explaining it. I'm really glad I can use it more as its very powerful.

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

    I really like your tempo and the calm state at which you throw your knowledge on the screen . It makes easier to digest for the learners.

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

    IMHO for beginners in order to you understand Promises fully, you firstly gotta learn about callback functions to understand what resolve and reject methods come from. Secondly learn about node bcs. you gotta use terminal in order to see the result. At least it gave me some hints what is going here for the first time.

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

      Dude, this. I was so confused by the arg passed to the then. function, like, how does it know it needs to fetch the reject or resolve data if the arg name has nothing to do with them?

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

    I make an effort to comment on every video that helps me out. Really concise, practical, easy to understand examples. Thanks so much!

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

    Great tutorial! Not only did you explain how it works you go over pitfalls . . . the same pitfall I ran into. Thank you!

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

      thanks Chris! glad to hear it

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

    This is the video every1 should watch for promises.I have seen many videos but no one explained like u.Thanks a lot bro

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

    I loved the way you compared a promise in real life to the promise in javascript.! :D

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

    Very nice and clean explaned!

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

      thanks Maja

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

    Great video Wes! I love how you explain things. I just finished my first year as a backend developer and all of your videos have helped me along the way. Thanks so much and keep up the great work!

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

      Thanks Taylor! Congratulations on your first year. All the best!

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

    ty, you helped my understand better the promises

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

    I think that what confuses many people me included is that it is rarely told when chaining promises that behind the scenes the .then(callback) takes automatically the data from the successfull promise as an argument.

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

      Yes I was wondering where the data is coming from

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

    great video mate thank you so much i was struggling with later part of promises when we introduce then, but now i understand it fully. Thank you

  • @21Dimen
    @21Dimen ปีที่แล้ว

    I'm very confused about the require thing, first time I've heard about it was in this video and now I'm trying to figure out how to do that.
    Otherwise, great video.
    PS: I've been studying JS for about 2 months.

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

    Thank you and greetings from Bulgaria.
    Please explain how can p3=1000 be a promise ?
    Thank you

  • @Coderverse.Technology
    @Coderverse.Technology ปีที่แล้ว +1

    Great video

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

    Thank you so much for this tutorial.

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

    Digging all the new content. You're killing it.

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

      Thanks, Taylor. I hope we can catch up soon. Hope you're doing well

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

    Really a good explanation.

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

    i'm a bit confused by the use of arrow functions buried deep within the promise multiple times. perhaps a video on that you could make please. the first 8 minutes before that i extremely enjoyed.

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

    Hey, thanks for the tutorial, can you please explain what the data in the parenthesis stands for? 09:09

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

    Can you also make a video on learning Vim editor, please? I've seen you in that live stream using it like a pro. It would be great to see a video on that from you because I feel you are explaining things in the most simplistic and best way to understand. Looking forward to that video!

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

      I've been considering this for some time, thanks for the suggestion! I'll have to come up with a way to spark an interest in using Vim for those who haven't used it before - it can be a bit of a challenge at first, but it provides a fantastic boost in productivity once learned.

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

      @@WesDoyle really sweet! Looking forward for the video soon! I'm quite excited! You can call me your excited subscriber. 😉

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

    So you took care of my advice! Thank you so much for that! This is a cool video!

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

      Thanks Hemanth! All the best

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

    Hey, nice video! Can you please tell me the name of the VSC theme? Thank you!

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

    I saw that Microsoft has added the static web app SWA builder on Azure. In your Udemy course, full stack, I think you connect the backend to the Vue front end using a product mapper to interact with an entity framework that stores its data in a Postgres relational database. Could you make a TH-cam video on creating an MS SWA that connects to the API we're building in your course? Am I correct to assume that we can simply swap out the front end (Vue) for a front-end SWA running on Azure? And, are you able to show us how to do that in a 10 minute TH-cam video (asking for a friend)?

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

    Nice video!
    What program are using to emulate Vim inside VS Code?

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

    Awesome video!

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

      Glad you enjoyed it

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

    subscribed good work

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

    Thx Wes! I had a request, would you make a video about .Net core and flutter. Thanks in advance!

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

      Nice idea Sudi David

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

      @@WesDoyle Thanks again

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

    Great video. When do we use setTimeOut()? Thank you in advance : )

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

    What vscode theme is that ?! 😲👌🏼

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

    Looks like a Task in C#

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

      They are related constructs! Check out TaskCompletionSource in C#

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

    hai bro

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

    Your Theme is creating PROBELM. Cannot see brackets and other stuff clearly which makes the whole tutorial shit despite being good in terms of teaching.

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

    Mine says this:
    Promise {}
    [[Prototype]]: Promise
    [[PromiseState]]: "fulfilled"
    [[PromiseResult]]: undefined
    Is it still pending?