JavaScript Promises -- Tutorial for Beginners

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

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

  • @ColorCode-io
    @ColorCode-io  2 года назад +51

    🎉👨🏻‍💻 JavaScript Promises and all their glory! This is episode 12 of a 10 part series I’m calling 10 things Javascript Developers Should Know But Probably Don't. Enjoy!

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

      Amazing series :)

    • @DanielNetSet
      @DanielNetSet Год назад +6

      12 out of 10?
      thats a out of bounds/stack overflow

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

      You promise 10 episodes but now in 12 😂😂

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

      Promises

    • @kiranrega10
      @kiranrega10 6 месяцев назад

      Which js compiler are you using?

  • @amanueletana
    @amanueletana Год назад +41

    This is not only coding tutorial rather its an ART!

  • @IntrinsicFlake
    @IntrinsicFlake Год назад +104

    I’ve been watching videos for years trying to make sense of Promises, and while I got through it, I’ve always wanted to come back and really understand them. Your video turned the light bulb on for me. Wow! I had to tip you for the help!
    I appreciate it so much! Definitely subscribing!

    • @ColorCode-io
      @ColorCode-io  Год назад +8

      That’s so great to hear. Thanks for sharing.

    • @deveren
      @deveren 9 месяцев назад

      @@doublewhopper67 ure da g

  • @Saliha_Abid
    @Saliha_Abid Год назад +24

    I am a 15 year old learning front-end development and struggling with promises. After 3 days of exhaustion I found ur video and finally got the whole concept. Thank you for this masterpiece 😍😍

  • @abahiduh3246
    @abahiduh3246 Год назад +4

    I have watched the best vidoes of Kyle Simpson, Tyler McGinnis, Tony Alicea, colt Steele, Jim cooper, Aksay, Ania, Maximilian, Sasha, I can go on and on.... I spent A LOT of Money just to understand. I have watched ALL YOUR VIDEOS.
    I can assure you that this explanation got.YOUR EXPLANATION of SIMPLIFYING THE CODE before refactoring in simply the Best.
    Your tutorial is AMONGST THE BEST THREE for me. THANK YOU, THANK YOU, THANK YOU.

    • @ColorCode-io
      @ColorCode-io  Год назад

      Thank you so much. This is very encouraging to hear.

  • @Gargantuan_Inferno
    @Gargantuan_Inferno Месяц назад +3

    Why does youtube algorithm hide such gems from the millions who would have subscribed had they been recommended such videos❤
    Would handsomely pay for such quality

  • @AJD...
    @AJD... 2 года назад +52

    Been watching your shorts for a while, decided to hop into your channel and this is the first video I watched. Holy hell the quality of your videos is mind blowing. You put so much effort into edits and your explanation is very planned, with a set preordained path which makes the most sense.
    You've got a new sub.

  • @AriKhuu
    @AriKhuu Год назад +9

    I'm so happy to be finding your channel I want to cry. Impeccable production. Clear examples. Perfect pacing - not too fast, not too sluggish. Detailed yet very follow-able explanation. Funny host. thank you thank you thank you.

  • @神キラー
    @神キラー 2 года назад +22

    i can tell you put a lot of passion and effort into your work bro its inspiring

  • @lemonbubble1243
    @lemonbubble1243 Год назад +22

    3 days ago I wanted to watch just this video but the title made me look for the whole series, and I knew that to understand better I needed to watch the previous episodes, and OMG I'M GLAD I DID. I feel I have like a super knowledge now, EVERYTHING MAKES SENSE NOW!! I don't know how to express how grateful I am!! I'm so excited because you cleared all my doubts about promises and not just promises, now I understand Objects() way better! THANKS!! Waiting for your master class!!

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

    What a charismatic person you are. Good Lord.
    I started the video knowing nothing about Promises and I am finishing it as an absolute pro.
    Thank you for going into detail.

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

    There aren't many video's that are 30+ minutes worth rewatching, but this one certainly is. Nice video

  • @kimashiidan
    @kimashiidan 4 месяца назад +2

    Cannot believe I'm watching this for free, you are the goat

  • @whathuh6965
    @whathuh6965 Месяц назад +1

    I must tell you; that was exceptional! I've been learning JavaScript for 4 days and I'm already up to Async and this helped a lot.

  • @erickchavez4551
    @erickchavez4551 Год назад +4

    I really like how your examples lead to real life situations and at the end it doesn't seem that complicated. Thanks!

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

    24:28 u so right about repeating and coding from scratch again and again, this so important to memorize and practice some hands on
    great tutorial, thanks

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

    I stumbled upon your channel from a random RUclips shorts. I am very certain that soon you are going to be a lot of people's go-to channel for Javascript (Or anything that you make content on). The effort you put in to make the concepts intuitive is just top-notch. And I guess it is very evident from the other comments as well. Thanks for the effort you are putting in man

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

      Exactly the same for me. Looks like I will be here for a while. I'm hitting sub right away

    • @ColorCode-io
      @ColorCode-io  Год назад +2

      Thank you both! Welcome aboard.

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

    A very underrated channel. I like your style of teaching! Thank you for the content! Keep up the good work!

  • @sujith.m.s4041
    @sujith.m.s4041 Год назад +1

    I got stuck in promise and call back for like 2 days, this reslly helped a lot

  • @rokesby
    @rokesby 4 месяца назад +1

    Thanks for this explanation. I appreciated you typing up the code 'by hand'. This 'slowing down' enhances my learning and lets me type along with you. Well done!

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

    "im sick and tired of your broken promises, promises" -3LW Thanks for always upholding your end of the promise Sina!

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

    Brooooooooooooo 🎆🎇❤🧡💛💚💙💜 first of alll, love your humor, second of all amazing content struturing it is so well organized an succinct and i will do what all the other people in the comment section did compliment how good your videos are. much love !

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

    Learn alot from ColorCode in just one month.
    Such an amazing content.
    The way you explain things is very very very interesting and funny.
    *Best JS channel* on RUclips.
    Thanks for such a premium content.
    Please deliver more.

  • @rjerez
    @rjerez 2 года назад +6

    Great work Sina, this is a subject that a lot of people seem to get wrong on interviews. Now I can refer them to this video. 👍🏽

    • @ColorCode-io
      @ColorCode-io  2 года назад

      Thank you Ronald for your support, always!

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

    I have seen lots of videos and tutorials but never use this topic of promises in my coding because of the bad and hard explanation, but now I am pretty sure I can use and refer to this great explanation ever, thanks a lot

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

    I am giving a Promise that i will do practice and learn with this video ....Thank you

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

    Thank you for this video. Leaned a lot. I was learning about promises a year ago, didn't understand much so skimmed through it. But now i can explain to others what a promise is.

  • @Walid-Sahab
    @Walid-Sahab 2 года назад +1

    How much effort you put for a single video other RUclipsrs don't even put to build their whole channel.

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

    you're the best of 7 videos about promises I've seen

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

    Please keep this JS series. I like your explanation!

    • @ColorCode-io
      @ColorCode-io  2 года назад +2

      It's going to continue :)

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

      @@ColorCode-io really nice video, please do continue!

  • @BrianMurithi-k7t
    @BrianMurithi-k7t Год назад +1

    Lot's of gratitude from me here Js Master, this series is really impacting me...

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

    5 minutes into the video and I can already tell that you are criminally underrated. Subbed

  • @blu3tan
    @blu3tan 9 месяцев назад

    nice setup, nice host, nice code, nice music, nice edit, nice english

  • @guy_roh
    @guy_roh 2 года назад +6

    Thank you so much for making an actually apprehensive video that normal people can understand, explaining the why's and how's in a much better detail than a lot of other videos I've watched! Subscribed and added this to my favorites in case I should I need it in the future! 👍

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

    29:10 A usecase for passing in onError in the .then() is to provide fallback data. For example, if fun1 rejects and then if the onError returns some data, then having fun1().then(fun2, onError).then(onSuccess) means that the onSuccess function will always receive some data, either fun1 resolves successfully and it's all good and well, or onError happens and that provides a fallback value so that onSuccess can always assume it has some data.

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

    This is the first time I'm seeing this guy, 30 seconds into the video, and I had to subscribe. Thanks for the video and the fun!

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

    GOATED video. This will be the last promise video I ever watch. Thank you!

  • @renzodiaz5996
    @renzodiaz5996 8 месяцев назад +1

    30:21 I can't believe Sina missed doing a "finally" pun when he literally was about to explain the "finally()" method.
    PD: Awesome video man! You teach us, you entertain us, you are a rockstar!

    • @ColorCode-io
      @ColorCode-io  8 месяцев назад

      You're right. What a missed opportunity.

  • @proudmoroccan8164
    @proudmoroccan8164 10 месяцев назад +1

    Thank you for sharing. Immensely appreciated. The best JavaScript promise tutorial as far as I am concerned. Best wishes for the new year.

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

    You are a wonderful teacher. Thank you for creating these videos🙏

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

    i'm gonna comment fort the third time, that is the best video about Promise all over this app
    I spend 2 days on it, messing around with my own things
    Thanks a lot Color Code

  • @CW-pd5fq
    @CW-pd5fq 5 месяцев назад +1

    Your teaching style is amazing, please continue your work 🙂

  • @saikumar8186
    @saikumar8186 4 месяца назад

    Until now, I have been hearing about promises but the way you explained has cleared the concept and become confident to proceed with JS coding. Looking forward for a Javsascript course from you.

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

    Best Javascript tutorials on YT!

  • @oilybrakes
    @oilybrakes 10 месяцев назад +1

    You explain stuff really well.
    I will watch lecture 11 and 12 again before going to 13 and take notes of stuff that I understand so I can call it back to memory with clues my brain considers the most helpful.
    But even now, there were moments of enlightenment along the way... But I already forgot😅😂

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

    Thank you so much. I was really confused on this topic but now I am confident with it.
    I PROMISE 😅😂.

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

    Man your content is so insightful and relaxed at the same time! Loving it.

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

    Awesome explanation, I thought it was a difficult thing but you made it way tooo simple. Thank you for your time and efforts. God may bless you a lot.❤❤

  • @BigSmoke-r9w
    @BigSmoke-r9w 8 месяцев назад +1

    Thank you so much for this!! ❤❤❤❤

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

    This will be the one video that gets me understand the basics concepts of promises. very good video outline and content.

  • @chetanchaudhary1017
    @chetanchaudhary1017 6 месяцев назад

    Best video on Promise I have ever watched.

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

    You nailed it man.. best explanation on whole youtube. i was frustrated. but now i know the whole concept of promises. SUBSCRIBED🌞❤

  • @m.hakania2251
    @m.hakania2251 Год назад +1

    You probably know and probably that's the reason you're making your videos this way, I love the way you constructed your videos!! (from a bro to bro comment)

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

    Thank you so much for this video! Finally someone who can explain promises well.

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

    My first time ever watching you, and I'm intrigued by your tutoring style.
    Instant subscriber... Thank you

  • @HarshitGautam-bj3lc
    @HarshitGautam-bj3lc 5 месяцев назад

    Believe Me you are the best on the RUclips, I have watched tons of videos on Promises but finally i gain much more insight now, thanks a lot one more things please increase the number of videos and no. of frequency you make and upload those videos that would be much more appreciated.
    Again Thanks a lot.
    KEEP POSTING DAILY (if possible).

    • @ColorCode-io
      @ColorCode-io  4 месяца назад

      Happy to hear that! Thank you

  • @oppomobile-ur4jd
    @oppomobile-ur4jd Год назад +1

    Love from India I'm learning front-end developer course

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

    That was pretty well explained, and FUN to watch ! Thank you, Weather Man!

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

    BTW your "do it yourself" admonition reminds me of the advice at the beginning of all the old Charles Berlitz language tapes where he said: Read it, Hear it, Speak it. He may have also said "Write it" sometimes, but his point was memory reinforcement that is as functional as possible.

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

    Tell me you play the bass without telling me you play the bass :D
    Thanks for this video series on JS. Great production quality, easy to understand and even entertaining at times!

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

    Thank you bro, can't wait for Episode 13 Async/Await

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

    thank you so much Mr Sina. Promises confused me a lot. God bless

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

    the best explanation of promises I promise :)

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

    I decided to give more watch time and subscribers as I can to such an underrated channel .

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

    I loved everything in this video man, keep it up !

  • @deveren
    @deveren 9 месяцев назад

    önünde saygıyla eğilmek istiyorum abi :D ben böyle açık bir anlatım görmedim. Thank you so much sir!

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

    Bro your explanation of concepts is top notch. Keep the good work up!!

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

    very underrated channel! glad i found you

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

    Glad I found your channel. It's the best explanation of the Promise and Async Await. Can you please do a series on the same topic for database CRUD? Thank you.

    • @ColorCode-io
      @ColorCode-io  Год назад +1

      I'm considering doing one on CRUD operations with Firebase.

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

    Thank you for the knowledge😁😁😁
    Your channel is🔥🔥🔥🔥🔥

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

    This is by far the best explanation on the topic I have been able to find, and I must say I love your other videos as well. Love the production quality too, what is the recording software you're using, looks really slick?

    • @ColorCode-io
      @ColorCode-io  Год назад

      The animations are all done by hand. The screen recording is just basic QuickTime.

  • @ade_aprianto
    @ade_aprianto 2 дня назад

    Perfect explanation of promise, you just got new subscriber! 👍

  • @skyfall5288
    @skyfall5288 6 месяцев назад

    ممنونم بابت توضیحات عالیتون.
    واقعاً به این ویدئو نیاز داشتم... :)) ❤

  • @ajayrathod7438
    @ajayrathod7438 10 месяцев назад +1

    I loved your video like every other specially your sence of humor. Can you make one video on Promise.All if possible.

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

    No Promises that I learned to Promise.
    Excellent tuts and explanations. Liked and subbed! Love your energy🙂

  • @LizyAd
    @LizyAd 4 месяца назад +1

    Thank you for making this video! I love the way you teach!

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

    THE BEST JS CHANNEL

  • @cjplabs
    @cjplabs 7 месяцев назад

    I know this video is old, but i’ve been coming back to this “10 things you should know…” series every time one of these topics comes up in the Odin Project and they always just make everything click

  • @TimJohnson-h7l
    @TimJohnson-h7l 4 месяца назад

    Came here for the promise video and noticed that Sade poster in the back - good taste brother!

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

    UUFFFFF The Chaining explanation was 🔥🔥🔥

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

    Great content as usual. Please upload video consistently

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

    Thank you. Looking forward to your video on async awaits!

  • @2difficult2do
    @2difficult2do Год назад

    Thus is the best explanation of Promise! Thank you so much!

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

    You teach so creatively

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

    Your explanation is so funny and so helpful at the same time, Hope you keep doing videos this way

  • @jeffersonr.l2864
    @jeffersonr.l2864 Год назад +1

    This content is simply amazing! Thanks for your effort in creating quality content, I learn a lot thanks to it.

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

    Best Promise video ever made!

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

    Thanks!!!!!!!!!!!!!!!!!!!!!!!!!!!! I spend a lot of time. Even for months, try to understand how can I apply it in my projects (Wait to render html elements and do something after all the elements is ready). I used to do with setTimeout and trying to guess when with time. But I did the exercise with one project and it works. Thanks!!!!

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

    Waiting for episode 13... Qoly!
    Thank you for the video.

    • @ColorCode-io
      @ColorCode-io  2 года назад +1

      I just spoke to Qoli. He says hi Alberto 👋

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

      @@ColorCode-io 😄

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

    Thank you so much for your lessons, and have some fun coding also 😊😊

  • @bakenbard
    @bakenbard 9 месяцев назад

    That was really helpful, I'm finally got the basics of it. THANK YOU!

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

    yeeeee i was waiting for this video

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

    Which code editor are you using? I like it, but I can't tell what it is.

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

    Very smooth,keep up the good work bro

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

    Top quality as always

  • @tanjimulislamsabbir2264
    @tanjimulislamsabbir2264 7 месяцев назад +1

    Wow. That's a great one about promises. 💚

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

    Not sure if this is covered in another video, but a discussion of the event loop and micro/macro tasks might help put promises in context. Otherwise, great video!

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

    Have been watching your videos for a while. The production value is so good. Just wondering, what's this code editor that you're using here?

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

    Cheers what a beautiful Teaching thank you so much for this Video!!!

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

    Great contents.
    one request. When you code or show slides, please make it full screen. Many people watch on mobile devices and it is very hard to read lines when displayed in half of the video.
    Thanks for the humors.