Asynchronous Javascript Tutorial - Promises and Async Await Explained

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

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

  • @changed217
    @changed217 2 หลายเดือนก่อน +1

    The only person on the internet, who actually helped me get rid of the fear about Promises, Async & Await

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

    One of the clearest explanations

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

      Thank you! Really appreciate it!

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

      agreed. I recently purchased another TH-camr’s course and had to request a refund. it was terrible. this guy has actual teaching skills at half their age 😂

  • @LowProFile1803
    @LowProFile1803 ปีที่แล้ว +12

    Clear, straight to the point, zero confusion: perfect explanation!!! Thank you so much!

  • @sanTakagi-gv4dy
    @sanTakagi-gv4dy ปีที่แล้ว +37

    This is the most easy understanding video to learn Asynchronous Javascript in my learning journey.
    Thanks a lot , Pedro. :)

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

    One thing to add might be that when returning something from an async function it will return a promise, which you can then resolve using .then/.catch/.finally

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

    Great tutorial on the use of promises and async/await to fetch data. Thanks, Pedro.
    {2022-10-20}

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

    I already knew that his explanation would be the best, he explains like someone explaining to a kiddo

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

    I was having so much trouble grasping the concept of promises & async/await until I came accross your perspective on it.
    Thank you ever so much for this detailed yet clear explanation!

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

    I think I've finally understood the whole asynchronous concept in JavaScript. Thank you, my fellow Brazilian dev!

  • @stephenawuah2020
    @stephenawuah2020 ปีที่แล้ว +5

    I found your channel yesterday and is like you are in my shoes , you are answering every question i had in mind , this is a great channel , thanks a lot for explain these concepts , , i have watched most of your videos and i am learning a lot from you , thanks man ,, the React , Async JS, things to know in JS before you start react , thanks man , I appreciate 🙏🙌💪

  • @tunjiadewoye448
    @tunjiadewoye448 4 หลายเดือนก่อน

    This was the best async/await tutorial I've ever watched. Thank you for the smooth explanation

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

    Now, I found the concept of "async - await and promises- .then" a lot easier. Thank you bro.😍

  • @Joe-od3td
    @Joe-od3td 2 ปีที่แล้ว +3

    As soon as I found your channel I started learning much quicker! Thanks your a great teacher :)

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

    best explanation so far on youtube. thank you very much

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

    I have seen several videos on the subject, in my opinion your explanation is the best. I finally understood async-await! Thank you

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

    The best video on async javascript. All concepts combined into 1. Very crisp and simple explanation. Thanks bro.

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

    I have been trying to understand this concept and how to code it. The best I have been able to do is find examples and copy them, but I don't understand them. This I understand. Thank you. Good luck with your schooling, and I hope you find a job.

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

    You're an amazing guy. Whenever I have confusion about certain topics, you always clear it up for me. Please continue to upload videos about the React topic. Thank you, buddy.

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

    This is the best promises and async await video on youtube, as a beginner we should know the bare minimum at first but other youtubers start teaching call back hell nd other shits at the start.

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

    Best video I have watched in a while. Took the time to explain clearly and in detail. Thank you!!

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

    This is the best video I've seen. You are definitely the best teacher! Thank you so much.

  • @TimothyBurns-lb4cb
    @TimothyBurns-lb4cb ปีที่แล้ว +1

    PedroTech, thank you so much. I've come into contact with async and await many times in other languages without putting in the time to understand it. Consequently my experience with multithreading anything has been very terrible. Your video made it all click, thanks (:

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

    This video combined with the video on javascript concepts to know before learning react has really finally helped understand the concepts that were getting me so stuck in javascript and were kind of scaring me away from it tbh. Thank you so much!

  • @Ujjwalchhabra1
    @Ujjwalchhabra1 9 หลายเดือนก่อน

    one of the best videos on async/await I've seen

  • @MOHANKUMAR.P-p1b
    @MOHANKUMAR.P-p1b ปีที่แล้ว +1

    Bro keep it up , best understanding over async and promises

  • @nk-hu7pt
    @nk-hu7pt 6 หลายเดือนก่อน

    Best video explaining this concept in whole youtube

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

    Thank you Pedro, Now I understand what the heck is Promise and async and await....

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

    Your code running with node to show the output on the terminal is great, because I was not able to practice with ease in the browser thankyou Pedro, you are young but you teach exact points of the topic not unnecessay stuff.

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

    Your accent is very easy to understand, thanks for the hard work man!

  • @SvetaSveta-ms4hi
    @SvetaSveta-ms4hi 3 ปีที่แล้ว +5

    Impeccable as always. I'm hooked on your channel. 😍

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

    After watching many videos, bro your video finally helped me to understand this topic. Thank you

  • @satyanarayanarajubhaskaran2432
    @satyanarayanarajubhaskaran2432 2 หลายเดือนก่อน

    Excellent job creating such a wonderful video at your age. You're truly impressive!

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

    I finally understand the concept of promises & async/await. Thank you Pedro

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

    Great explanation! Finally, I understood async await.

  • @jonux13
    @jonux13 หลายเดือนก่อน

    So, so, so, so, amazing!!! After I don't know how long I didn't understand it, finally your explanation did, thank you very much!!!

  • @kedhareswar4568
    @kedhareswar4568 9 หลายเดือนก่อน +1

    This is my first youtube comment ,Excellent content brother I have been struggling since so long from this topic you nailed it perfectly !!

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

    Wonderful! I'm lucky to have clicked on this particular video to learn about Promises. Thank you Pedro!

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

    Absolute Legend you are sir

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

    I'd like to sincerely appreciate you for making this video and taking the time to explain in clear terms. You are the best of the best!!!

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

    I wish I watched this video when I was learning JS ❤️❤️❤️

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

    Pedro you really are a great tutor

  • @renzmarionremias9871
    @renzmarionremias9871 8 หลายเดือนก่อน

    Best tutorial Pedro and straight to the point! May I know what vs code theme you used in this video? Thanks!

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

    Thanks a lot Pedro. You kind of simplify programming concepts and moreso communicate it in a relatable manner. When I have difficulties digesting concepts, I kind of have you in my mind as my go-to resolver 😃😃😃. Glad I found you🙏..

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

    Thank you very much. You made the concepts very easy to understand

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

    Really helpful video, got two ways to use a get method with axios

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

    Love your teaching styles man

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

    Thanks for the amazing tutorial👍 It was very helpful

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

    do you have one on hooks, especially react hooks? its quite confusing for people used to classes and functions from C++/C# background..

  • @AfreenSyed-rl1xf
    @AfreenSyed-rl1xf ปีที่แล้ว

    thanks a lot man. you have no idea how much I needed it.

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

    super amazing video. straightforward and easy to understand. Big thanks

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

    Excellent video. Very clear explanation.
    Thank you

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

    Thank you so much. I finally understood both clearly.

  • @38911bytefree
    @38911bytefree ปีที่แล้ว

    It is crazy, comming from desktop application on C# or as old as VB, the defualt behaviour was block de execution until a call is resolved and to deal with this and not freezing the UI, you nneded something like creating a new thread and trow the blocking task there. Now you need to ask the program to wait, otherwise it will behave as non blocking. Thanks for the vid.

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

    Very clear explanation. This channel is full of good education videos. Good job Pedro

  • @akritiyadav3873
    @akritiyadav3873 7 หลายเดือนก่อน

    It is the best explanation ever

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

    Beautifully explained. Thanks.

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

    Thank you! Your explanation was very comprehensive.

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

    so far this is the best video

  • @g.soujanya6704
    @g.soujanya6704 ปีที่แล้ว +1

    super clear.Thank you so such...

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

    very clearly explained ,thank you

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

    Thanks. Its much clearer now

  • @surya_kirann
    @surya_kirann 11 หลายเดือนก่อน

    Watching this single video is enough to subscribe your channel thank you..!!!

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

    You're the best bro

  • @yonasseid6115
    @yonasseid6115 3 หลายเดือนก่อน

    Best and simple, thank you

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

    Excellent explanation.
    Thank you

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

    This was so helpful!

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

    Very good explanation. Thank you 🙏

  • @LinhNguyen-nh8oq
    @LinhNguyen-nh8oq 4 หลายเดือนก่อน

    Thanks pedro, good explanations

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

    Hey pedro make a course on react native.

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

    Beautiful and clear explanation 🙏

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

    You are absolutely a Great Teacher 🫡❤🙌

  • @ShubhamPatil-rr4on
    @ShubhamPatil-rr4on 3 ปีที่แล้ว +2

    Great videos you are making
    I love the. React ♥️

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

    Thanks for the video Pedro!

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

    Hi. Can you do a video about any kind of ORM?

  • @Rohit-bm9si
    @Rohit-bm9si ปีที่แล้ว

    Great video. I would like to appreciate your efforts for uploading this video.

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

    Very clearly explained!

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

    good job .....PLEASE can you make a video about Cpanel and web deployment

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

    Can you make a detail tutorial about redux-saga??

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

    Thank you so much! Helped me a lot

  • @madhuri_111
    @madhuri_111 3 หลายเดือนก่อน

    Thankyou soo much. This was really helpful

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

    fala ai Pedro, cê pode fazer um video de firebase?

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

    you are great teacher

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

    Best explanation! Thanks man.

  • @patrickc.2680
    @patrickc.2680 3 ปีที่แล้ว

    good stuff. thanks (we need more of this)

  • @JagTheRipper
    @JagTheRipper 10 หลายเดือนก่อน

    Solid explanation well done 💪🏼👍🏼

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

    The one thing i miss in this video, is that you did not show what asynchronous is. All the code below the promises would still run. Would have been nice if you showed that with a simple consolo.log which probably would run before the promise.

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

    Bro make one video on how to integrate firebase auth in react project and btw your javascript videos are so good

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

      Thank you! I always wanted to do one on that!

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

    i need that master type of video

  • @manoj-k
    @manoj-k 3 ปีที่แล้ว

    This was great tutorial! Thank you so much 🙏🏻

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

    Fala Pedro! Cara vc sabe se tem como fazer um FORM com a opção de anexar arquivos pdf ou imagem e enviar os dados desse form por email sem back-end e banco de dados?

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

      teria que usar algum cliente tipo o nodemailer, mas hoje tu provavelmente já deve saber kkkkkkkkkkkk

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

    Best explanations ever!

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

    Pedro, this was an amazing video, you really demystified this aspect that it has always been hard to remember and why you use async and await, you should be teaching college dude.

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

    Thanks brother, love from san diego :)

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

    so clear bro thank you

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

    You are doing a great job

  • @Titan-ey2wj
    @Titan-ey2wj 10 หลายเดือนก่อน

    great explanation, thanks 🤜🙏

  • @ИннаБогданова-к4щ
    @ИннаБогданова-к4щ 2 ปีที่แล้ว +1

    great job!!!!

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

    You are the best.

  • @JKTurner1
    @JKTurner1 7 หลายเดือนก่อน

    best explanation. thanks load

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

    Please make typescript tutorials