Promise APIs + Interview Questions 🔥 | S.02 Ep.05 - Namaste JavaScript | all, allSettled, race, any

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

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

  • @gururajchadaga
    @gururajchadaga ปีที่แล้ว +148

    Namaste Machine Coding in VanillaJS and Namaste Frontend System Design would be killer ideas for the next NamasteDev paid courses, we are here to support you.
    Thank you for the amazing lessons, Akshay! You have made me a better developer.

    • @akshaymarch7
      @akshaymarch7  ปีที่แล้ว +22

      Thank you for supporting the channel, means a lot! ♥️

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

      @@akshaymarch7 yes pls make namaste system design, Machine Coding next year 🙏🙏🙏
      I will be the first one to buy that course

    • @AnujYadav-xq3fr
      @AnujYadav-xq3fr 11 หลายเดือนก่อน +1

      Enjoyed all ur js tutorial i have also taken ur react course i paid it becoz i loved ur teaching❤❤❤

    • @LokeshSharma-v2s
      @LokeshSharma-v2s 10 หลายเดือนก่อน +1

      @@AnujYadav-xq3fr anuj mujhe bhi share kar do akshay sir ka react wala paid course waise me bhi course kar raha hu frontend ka from almabetter se but itna samjh me nahi aya or fees bhi waste ho gayi to kya tum share kar doge course please

    • @UdayKiran-bs6eu
      @UdayKiran-bs6eu 5 หลายเดือนก่อน

      How to take this react course

  • @nitink167
    @nitink167 10 หลายเดือนก่อน +36

    Bro we will never get confused when you are there to teach all of this. You are better even than documentations of JS. You are 🔥🔥🔥🔥

  • @AbhishekYadav-wc5vz
    @AbhishekYadav-wc5vz ปีที่แล้ว +24

    Thanks Akshay! Loved the whole ''Namaste Javascript' journey. Your enthusiasm and hardwork is highly apppreciated.

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

      Thanks a ton for supporting the channel, means a lot! ♥️

  • @harishkanuka
    @harishkanuka 9 หลายเดือนก่อน +4

    00:00 🔑 Promises APIs are crucial for interviews and everyday application development, especially when handling asynchronous operations like parallel API calls.
    02:02 🔑 Promise.all handles multiple promises simultaneously, returning an array of results when all promises are fulfilled, and throwing an error if any promise fails.
    06:38 🔑 If any promise in Promise.all fails, the entire operation fails, and an error is thrown immediately without waiting for other promises.
    12:02 🔑 Promise.allSettled waits for all promises to settle (whether fulfilled or rejected) before returning an array of results or errors, making it suitable for scenarios where partial failures are acceptable.
    16:57 🔑 Promise.race returns the result of the first settled promise, whether it's success or failure, making it ideal for scenarios where the fastest response is required.
    21:52 🔑 Promise.any is similar to Promise.race but waits for the first successful promise rather than the first settled one, making it suitable for scenarios where success is prioritized over speed.
    22:33 🔍 Promise.any returns the result of the first successful promise and ignores subsequent failures, waiting for success.
    23:55 🏁 Promise.any collects errors if all promises fail and returns an aggregated error array.
    27:05 🔄 Promise.all returns an array of all results when all promises succeed, waiting for all to finish.
    28:40 🛠 Promise.allSettled waits for all promises to settle (succeed or fail) before returning results, ensuring all promises are accounted for.
    31:18 🏎 Promise.race returns the result of the first settled promise, whether success or failure, racing to return the fastest result.
    43:54 📝 Promise status can be checked for rejection along with the reason for rejection, providing clarity in handling errors.
    44:21 🚀 Promise.race returns the result of the first settled promise, whether it's a success or failure, regardless of the order in which promises are fulfilled.
    45:59 💡 Explaining concepts in interviews requires not only understanding but also the ability to articulate ideas clearly, which is often a stumbling block for many candidates.
    46:13 🔑 Promise.race resolves to the value/error of the first settled promise, regardless of success or failure, emphasizing the importance of understanding terminology in the Promise world.
    48:17 📚 Familiarity with Promise terminology like "settled," "resolved," "rejected," "fulfilled," and "rejected" is crucial for effectively working with Promise APIs.
    49:56 📝 Promise.any waits for the first settled promise, and if it's a success, returns the result, ignoring subsequent rejections until a success occurs.
    52:25 📊 When all promises fail with Promise.any, it results in an "aggregate error," which consolidates all the errors encountered during execution.
    54:14 🛠 Handling aggregate errors in Promise.any involves accessing the errors in an array format, allowing for comprehensive error management and analysis.

  • @amanmanojpreeti
    @amanmanojpreeti 9 หลายเดือนก่อน +8

    I have purchased your react course last year. I was too lazy watch those earlier, but, I started watching it now. And believe me, I have watched a lot of react tutorials and read docs about reactjs earlier. But, only after watching your react course first 3 apisodes I got to know how react actually works. Really loved it. Thanks a lot for your efforts!

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

    00:04 The main topic of this video is Promise APIs.
    02:21 promise.all takes an array of promises as input and makes parallel API calls.
    07:13 If any promise in the Promise.all array gets rejected, the Promise.all will throw an error, and the same error will be the output
    09:48 The Promise APIs all and allSettled handle the success and failure of multiple promises.
    15:00 Promise APIs - all, allSettled, race, any
    17:31 In a race between multiple promises, the first promise to settle (either resolve or reject) will determine the result.
    22:07 Promise.any waits for the first successful promise
    24:38 If all promises fail, an aggregated error will be returned.
    28:58 Promise APIs + Interview Questions: Explaining the functionalities of allSettled, all, race, and any
    31:03 Promise.all, Promise.allSettled, Promise.race, Promise.any
    35:14 Demonstration of using Promise APIs in JavaScript
    37:29 Understanding Promise.all and handling errors
    41:40 The promise.allSettled() method waits for all the promises to fulfill, collects all the results, and returns them.
    43:41 Promise object gives an array of objects with status and value for success or rejection.
    47:52 Understanding the lingo of promises: fulfilled, rejected, settle, success, failure
    49:47 Promise.any waits for the first settled promise and ignores the rest
    53:54 The aggregate errors in Promise APIs are returned as an array.
    55:57 The speaker is requesting viewers to share and appreciate the video.
    59:38 Promise APIs + Interview Questions 🔥

    • @Karan-zk9ke
      @Karan-zk9ke ปีที่แล้ว

      bhai pucha nahi kisine

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

      @@Karan-zk9ke oky bhai,,anything else?btw thnx for being so arrogant

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

      Thank you bro for this!

    • @Karan-zk9ke
      @Karan-zk9ke ปีที่แล้ว

      @@tanzirou10 np bro , anytime

    • @srijansagar1250
      @srijansagar1250 11 หลายเดือนก่อน +1

      bhagwan aapke charan kaha hai 🙏🙏

  • @yashyk322
    @yashyk322 6 หลายเดือนก่อน +31

    I gained so much deeper knowledge about JS just by following both the Namaste JavaScript seasons and I can't thank you enough. I would definitely would love to meet you in person some day. Can't wait to learn more from your lectures. Thanks a ton again !!!

  • @riyakansal3312
    @riyakansal3312 10 หลายเดือนก่อน +12

    This is legit the best PROMISE APIs video in the history of TH-cam. Kudos to your efforts sir.

  • @PankajSingh-jz6cd
    @PankajSingh-jz6cd ปีที่แล้ว +23

    Akshay I have learned so many things from you and I am glad to have a great teacher like you 🙏
    Love you bro ❤
    Keep shining 🌟

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

      Thank you for supporting the channel Pankaj, this means a lot.

  • @JangBahadur3028
    @JangBahadur3028 ปีที่แล้ว +25

    respect for such teachers who are helping the coders selflessly.

  • @shubhammali2109
    @shubhammali2109 8 หลายเดือนก่อน +3

    This is legit the best PROMISE APIs video in the history of TH-cam. Kudos to your efforts sir. RESPECT++

  • @RakhiBarnwal-x2c
    @RakhiBarnwal-x2c 11 หลายเดือนก่อน +5

    I completed your javascript s1 and s2 now i just purchased your namaste react course bcz i really liked your teaching style its really in depth and i never got this type of educator thanks a lot Akshay.

    • @SagarRawat-y6o
      @SagarRawat-y6o 2 หลายเดือนก่อน

      How is this course i am deciding to buy this course can you tell me you review of your courses

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

      It's good for beginners tell me please🙏.

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

    Iam also a namaste react student and i came here for revision
    Thanks for making namaste js and namaste React
    plz upload more videos.....
    A Big fan of ur Teaching Akshay Bhaiyya🤗🤗

  • @amayamathur7679
    @amayamathur7679 11 หลายเดือนก่อน +3

    Your ability to explain things with such ease is truly commendable.

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

    "It's so good that I don't have the words to express it. In every video, I have learned something new. I am from India and live in a small village. I lack knowledge in English, but slowly I have started understanding from this playlist's videos. Thank you, bhaiya, for this. I really want to meet you when I achieve my career, and then I will express my feelings that because of your teaching, I am good

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

    Log Roadmap banate reh gaye .... Akshay sir padhaa k nikal gaye .
    Salute you boss🙏

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

    This is wonderful, recently I was teaching the promises as a part of training program to newly joined grads and your videos really come handy to explain all the concepts related to promises. Thanks for all the efforts!

    • @CharanGs-t4i
      @CharanGs-t4i ปีที่แล้ว

      just refer them his videos instead and if they still have doubt explain them. self learning is a great skill

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

    finished all ep of namaste js. and legit came from namastedev to youtube to like all the videos. will be starting reactjs in a while. YOU ARE GOAT. thanks man

  • @prathamsinghal5261
    @prathamsinghal5261 10 หลายเดือนก่อน +1

    I cannot compare your videos with any other content as this channel has became my one stop solution for JS things. Well Appreciated!

  • @dattatraywashivale9905
    @dattatraywashivale9905 24 วันที่ผ่านมา

    Akshay Sir I watched all your Namaste Javascript series and now i am taking your paid course of Namaste React it is very very worth to buy. Your way of teaching is very unique and understandable.

  • @dhrumilshah7710
    @dhrumilshah7710 ปีที่แล้ว +6

    Nowadays everyone has so little attention span but Your engagement style is insane..it didn't feel like one hour video

  • @playwithkoki
    @playwithkoki 9 หลายเดือนก่อน +2

    I never read about promise APIs myself as i was afraid of these, but you made it so simple and easy to understand. Thank you Akshay. You are a 💎❤

  • @shreeshamg169
    @shreeshamg169 8 หลายเดือนก่อน +3

    Big round of applause for Akshay saini for whole namaste javascript series

  • @prachi_arora
    @prachi_arora 11 หลายเดือนก่อน +5

    I was among the 1st 20 students who enrolled for Namaste ReactJS, after completing your namsate JS series on youtube.Your content has helped me a lot in my interviews.
    We definitely wait for your Namaste Machine coding and Namaste DS algo paid courses. I know there is so much content available for DS algo in youtube already, but the energy which you share with us makes a big difference.🙏I share and suggest your channel to any one who wants to improve there game as frontend developer.
    Have shared my experience of Namaste ReactJS on Medium as well *Top 3 Resources to Learn React-A Roadmap*
    You make our coding journey very easy! Keep doing the amazing work.
    Thanks Akshay !

    • @akshaymarch7
      @akshaymarch7  11 หลายเดือนก่อน +1

      Thank you for your beautiful comment, made my day! ❤️

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

    I have no world for your efforts....
    I
    am wordless ........

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

    These videos are extremely helpful. You don't even need to ask for likes or comments; true developers will naturally appreciate your content.

  • @himanshu73911
    @himanshu73911 11 หลายเดือนก่อน +2

    I love the way you explain. I have seen all namaste javascript video. Thank you so much for your effort

  • @nikhilsharma4682
    @nikhilsharma4682 9 หลายเดือนก่อน +2

    I cant express the way you teach the complex things about javascript so nicely and they really gets stuck in our mind for the longer period of time, I wish you all the best for the future.
    Thank You🌸🌸🌸🌸🌸🌸🌸🌸

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

    I promise the world this is the best ever explanation about "Promises" ever ❤‍🔥

  • @skreddysasi3404
    @skreddysasi3404 ปีที่แล้ว +6

    Bhai 🫂 This video was incredibly informative and helped me learn a lot. Thank you for providing such valuable content!
    Lots for Love Bhai🥰

  • @VarshaKharat-yv2ov
    @VarshaKharat-yv2ov ปีที่แล้ว +5

    Please try to make more videos no one teaches like you after watching this video i build my fundamental knowledge strong

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

    Thanks Akshay for such beautiful explanation. I am such a lazy guy to learn things. But this time, I couldn't stop my self watching all of your Promises videos in 2 days. Really really cool explanation you have created for us. Thanks again!

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

    ALWAYS THANKFUL TO YOU! ♥
    I came from a B. Com background and In my 7 years of career, I've rarely invested in pricey courses, mostly relying on Udemy for learning, including a React course.
    However, to learn from you, show my support and genuine appreciation for your work I joined live Namaste React course. This course helped me to quickly start working on an existing react project in my job. While working on the project, I didn't feel like a React newbie at all.
    I can see the immense effort you've poured into Namaste React and Namaste JavaScript series, and it's made me genuinely fall in love with these subjects.
    Gratitude!🙌

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

    Your dedication stands out, and it's rare to come across a TH-camr who puts in such genuine effort. Your generosity in sharing knowledge is commendable, and I can't help but feel immense respect for you.
    Thank you for being a beacon of support and knowledge. Much respect to you, Akshay!

  • @BHUVANESHWARANS-o1i
    @BHUVANESHWARANS-o1i 6 หลายเดือนก่อน

    Askay if there is a teacher like you in college and school I will definitely become a developer in the early stage of my life, your game changer to my became developer journey..if I do not watch your JS video will unable to understand js and fall in love with js..your are the reason i more fall in love with js and under how js work.. i will greatefull and owe you for my life. thank you Aksay

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

    Next videos should be writting polyfills of built in APIs and sticking to the core javascript fundamental, showing how it is done in raw codes

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

    Hard to stop binge watching content on this channel. Always awesome and filled with knowledge. Thankyou ❤

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

    Namaste React by Akshay Saini is the best course of react. I can say this thing because I learned react that course only. And believe me you will be the most happiest person after completing the course.

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

    You are truly amazing and don't need to ask for likes or subscribers. You surpass many of the best teachers available on the internet. Your depth of knowledge and clarity, combined with your cheerful attitude, have made me a huge fan. Thank you for sharing your wisdom. from Bangladesh

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

    Trust me I wished at 2pm that when next video gonna come and you uploaded it today thank you so much sir👋

  • @shaffikhan1908
    @shaffikhan1908 11 หลายเดือนก่อน +2

    Hi Akshay Finally I have completed your Namaste JS series which was pending for a long, but with recent bad interviews I made up my mind to go this series, After completing this series and liking everyone of your episodes, I feel that I just deep dived in to the ocean of JS concepts and came out with Treasures which I will cherished for Long. I think your efforts in preparing this gr8 gr8 too gr8 series are not in vain, believe me you have earned so much excellent wishes by helping people struggling in JS stream. I am really thankful and greatly appreciates your efforts, do make more good such series, even if it is paid I will surely give it a GO. Thanks again.

  • @iamanonymous2
    @iamanonymous2 11 หลายเดือนก่อน +2

    Your lectures are really amazing and easy to understand. Thank you very much for making this high quality content for free.

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

    I appreciate your video. I never get panice in any JavaScript-related interview because of the knowledge you give me.

  • @unknown47896
    @unknown47896 11 หลายเดือนก่อน +1

    sir, you have no idea how much i love this namaste js season 1 and 2 .... you are the best teacher in this world and i really mean it💙💙💙

  • @SandeepKumar-ph9ug
    @SandeepKumar-ph9ug หลายเดือนก่อน

    Thank you, Akshay Sain Sir, for explaining the Promise API with such clarity! Your examples and step-by-step approach made understanding asynchronous operations much easier. I now feel confident working with promises in my code, and I really appreciate your patience in answering all our questions. You've made learning JavaScript a lot more enjoyable!

  • @suhailafnan6264
    @suhailafnan6264 11 หลายเดือนก่อน +1

    a huge respect for you brother .i had seen all the videos in namaste js and i understood a lot things in it .and also you are a good teacher of all time .i had got manymany things from you .THANK YOU BROTHER

  • @MrKmurthyhegde
    @MrKmurthyhegde 4 หลายเดือนก่อน +1

    What a terrific teacher Akshay is! People owe you a Gurupoornima pooja for your outstanding work! 😀🙏 Thanks for the wonderful course.

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

    Mr. Saini , I have been gifted Namaste React course.
    Promise APIs is something I didn't know before. I heard and learned it today from you. Dil se Shukriya .

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

    What a teacher... , all concepts get clear like crystal... you have JS community's respect for parting in depth knowledge... !, completed JS season 1 and season 2 and gained so much knowledge.. thanks!

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

    Never knew all these variants earlier. Learnt a lot thanks.

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

    Best Promise video series on youtube, all the concepts are explained in so much depth, I used to ignore this Promise topic for years, but now I feel I have learned so much by watching your videos, thank you so much Akshay for this amazing javascript series, you are are the best Javascript teacher on youtube

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

    Hats off to you, Akshay! I really appreciate your teaching style. You make complex concepts easy to understand..

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

    namaste react is the best react course available in the market RN, True that

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

    You are a teacher who gets a lot of respect from his students and such teachers are like God in the world....🙌

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

    I always used to think your videos are quite lengthy, the timeline often forced me to skip them..
    But what a gem of a content is this!
    I guess after Kyle Simpson you are the second best teacher for Javascript community. Huge respect and kudos to your all your hard efforts. 💎🙏

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

    for Telugu Developers Namaste Javascript + CS world Telugu will transform you into a full-fledged Front end developer. These are best channels with top notch content.

  • @KishanPatel-gq2pf
    @KishanPatel-gq2pf ปีที่แล้ว

    I have watched all the videos on Namaste Javascript. Today I joined the Namaste React and I am confident that I will learn a lot.

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

    Akshay i had watched lots of promise videos on youtube but this is the best promise explanation ever no need to watch or read anything now. Thank you

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

    This man is life saviour !!!!! Everytime I come here I get all concepts !!!AkSHAY >>>>> everything in frontend

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

    Folks , he is the best . This course in its continuity , is the god of everything.

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

    You are just god of Javascript words cant define you brother.....10 times more than any paid courses and institutes....finally i can say you just nailed it....❤💥

  • @ArunKumar-1123
    @ArunKumar-1123 9 หลายเดือนก่อน

    It doesn't matter what your future will be. But all our blessings will be there to you. It takes years of experience to gather knowledge like this, but you are sharing it freely. Thank You for everything Akshay ❤. I started Namaste React and Namaste Front End Design aswell. Because i know it will be totally worth it. Everyone pay lakhs of fees in their college. But when it comes to 2.5k money to buy a course they hesitate. When i found out that you have started Namaste React. I haven't hesitated at all. Because i believe in you. It's truly worth it.

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

    You are a fantastic teacher. I have cleared frontend interviews because of these deep and conceptual javascript videos. Thanks alot❤.

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

    I cant thank you enough Akshay for these tutorials on javascript. You are doing a great job ,

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

    I love each and every video of yours! Could you please also cover these topics in the upcoming videos?
    1. this keyword
    2. bind, apply, and call methods
    3. debouncing and throttling
    I couldn't clear one round because of twisted questions related to the above 3 topics. The interviewer expected me to know how the bind function works under the hood. He also gave me a piece of code to test the above 3 concepts. It was like a "Predict the output" type of question.

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

    I did a course , from somewhere never understood closures , higher order functions , promises etc . Your dedication to teach us , make understand point by point is magnificent 😍 and i really respect your research on every topic

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

    Thank you, Akshay. I finished both seasons 1 and 2 of Namaste JavaScript today, and I learned a lot. In fact, I also purchased the Namaste React course.I fell in love with JavaScript only because of you.

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

    This video provides the clearest explanation of JavaScript promises I've ever seen! It really helped me understand how to simplify asynchronous programming. Thank you!

  • @DheerajKumar-tk3vt
    @DheerajKumar-tk3vt ปีที่แล้ว +1

    You are the bestest trainer I have ever seen🙏 Thank you so much for sharing your knowledge and improving my skills🥳🙏

  • @parakhpatel93
    @parakhpatel93 8 หลายเดือนก่อน +1

    I will definitely share on x and LinkedIn thanks for this

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

    Sir, u r the reason ,why I have hopes for me to become a fullstack dev. U r doing very good and have explained concepts very well may God bless you.🙏🙏

  • @khushbukumari6635
    @khushbukumari6635 4 หลายเดือนก่อน +1

    Thanks Guru Ji 🙏
    it's morning 6:38 and i have completed this video just now.
    I am habituated of your JS web series. I wait for my daughter to sleep to finish your video.

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

      Your comment made me emotional. 🥹
      Wish you the best for your learning journey! 🚀

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

    successfully completed this series till now and what a course and an explanation. Just wonderful and deep

  • @Garibooooo
    @Garibooooo 11 หลายเดือนก่อน +1

    I want to buy your react js course but now I don't have job once I got the job ,I will definitely buy your course and sir you made the js course like a halwa😘😘 I love it❤❤

  • @bhargavtalpada205
    @bhargavtalpada205 10 หลายเดือนก่อน +1

    Hello Akshay sir
    This video is amezing and currently I'm understanding promises and promises api in depth and I show many videos in TH-cam about js but your namaste java script is amezing and very much more special for all js developer.
    Your videos is given more conceptual understanding and answers for interview.
    Thank you for this amezing series and thanks for this amezing knowledge and understanding❤❤ .
    Akshay Sir

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

    To be honest Akshay Saini sir i never got confused in this whole video beacause you have explained it very well! No one can explain it better than you!

  • @DeepakSoni-lx2oi
    @DeepakSoni-lx2oi 6 หลายเดือนก่อน +1

    Thank you Akshay, I got a job in MNC after your Namaste Javascript and Namastey React course ❤❤❤
    Role is Engineering Lead
    Company is - Persistent Systems Pvt Ltd

  • @NitinKumar-wv9kc
    @NitinKumar-wv9kc ปีที่แล้ว +5

    Thanku so much sir... You made my life easy

  • @vigneshwaraperumal.g8794
    @vigneshwaraperumal.g8794 8 หลายเดือนก่อน

    Iam also a namaste react student. Thanks for making namaste js and namaste React
    plz upload more videos.....
    A Big fan of ur Teaching Akshay Bhaiyya

  • @BruceWayne-kw6xm
    @BruceWayne-kw6xm 3 หลายเดือนก่อน

    hands down , the best promise API video on TH-cam... Thank you Sir

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

    A very amazing video on Promises, never seen video like this on TH-cam ! thank you!!

  • @SharmaSS-eq4vw
    @SharmaSS-eq4vw 4 หลายเดือนก่อน +1

    what an amazing video. I have seen many videos of Promises and without doubt this is the best one 🔥

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

    I don't have any words to express my fillings. Love you sir, I have never learned this type of content in my life.

  • @SagarRawat-y6o
    @SagarRawat-y6o 2 หลายเดือนก่อน

    Best Ever Course of JavaScript InDepth

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

    i learn this before some other channel but i can't understand but in your video i got to know how it works and i am confident about this topic !! your teaching skill is amazing sir thank for free course.

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

    Thanks!

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

    This video is awesome. I am obsessed with your teaching style. I have a question though it was asked one of my friend's Lenskart frontend interview can you plz make a video on it "Suppose I have a series of 4 promises in a JavaScript application, and I want to implement a mechanism where, if the second promise in the chain encounters an error or is rejected, it is automatically restarted or retried from the first promise (basically restart the promise chain). How can I achieve this retry functionality for a specific promise in a promise chain in JavaScript?"

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

      I searched your question in ChatGPT to understand the solution, posting it here so it'll be helpful for all.
      async function retryablePromiseChain() {
      let retryCount = 0;
      const maxRetries = 3; // Adjust the number of retries as needed
      while (retryCount < maxRetries) {
      try {
      // The first promise in the chain
      await promise1();
      // The second promise that might fail
      await promise2();
      // The rest of the promise chain
      await promise3();
      await promise4();
      // If all promises succeed, break out of the loop
      break;
      } catch (error) {
      // If the second promise fails, catch the error and retry
      console.error(`Promise 2 failed. Retrying (${retryCount + 1}/${maxRetries})`);
      retryCount++;
      }
      }
      if (retryCount === maxRetries) {
      console.error('Max retries reached. Promise chain failed.');
      // Handle this accordingly, e.g., throw an error or log it.
      }
      }
      async function promise1() {
      // Implement your first promise logic here
      }
      async function promise2() {
      // Implement your second promise logic here
      // If it fails, throw an error
      // Example: throw new Error('Failed to execute promise 2');
      }
      async function promise3() {
      // Implement your third promise logic here
      }
      async function promise4() {
      // Implement your fourth promise logic here
      }

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

      if you find the answer of it please post it here

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

      .

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

    Just finished the video and really good overview of promise APIs. Much gratitude and thanks my brother. I love your teaching style and your ability to condense things so we (the viewers) can grasp the core concept. Also, you provide code examples and use cases. Peace and much love

  • @tekluabayneh-ru8rp
    @tekluabayneh-ru8rp 7 หลายเดือนก่อน

    to be hones with you are the smartest teacher i have ever seen before and please keep doing it

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

    Thanks

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

    I never thought I would ever watch 1 hour video, but this is the first time I did and it was totally worth it! Every concept is wonderfully explained 👏

  • @NoorNazar-h9c
    @NoorNazar-h9c 11 หลายเดือนก่อน

    i have fallen in love with js after watching your video and i got surprise that this type of content..how did we get for free.😍Thank you sir for making deep conceptual content.

  • @siddtv2751
    @siddtv2751 21 วันที่ผ่านมา

    Believe me guys, this man is a genius🧠❤

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

    i have no idea. i got what i want tnks tnks tnks.......... Akshay you are more than ChatGPT. THANKS AGAIN AGAIN AND AGAIN!!!!!!!!. i love the way you teach deeply i love javascript now

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

    Hands down The best promise video one could asked for.

  • @VinitKumar-xk1dd
    @VinitKumar-xk1dd 4 หลายเดือนก่อน

    Thank you
    Now, I will never forgot all of these 4 promise api . and don't even realize that the video has a length of 1 hr. Super interesting Video

  • @Be_Confident11
    @Be_Confident11 3 หลายเดือนก่อน +1

    // My Learning from this video
    /*
    1. Promise.all
    a. In case of success :
    Wait for all to finish then so output.
    b. In case of failure :
    If any one fail then QUICKLY show error it's not wait for other to finish.
    2. Promise.allSettled ( BEST AMONG ALL 4 )
    a. In case of success :
    Wait for all to finish then so output.
    b. In case of failure :
    If any one fail then still wait other to finish then return result. [val1 , err2 , val3]
    3. Promise.race
    -> First settled ( whether it's success or failure )
    return result of first settled promise.
    like if ok then ok or if fail then fail
    4. Promise.any
    -> return first settled RESOLVED(success).
    -> If fail then still wait for other.
    -> In case of all promise reject then return AGGREGRATE ERROR with value.
    [err1,err2,err3]

    */
    // Typo of naming convesnion
    /*
    Settled -> got our result
    / \
    resolve or reject
    success or failure
    fulfiled or reject
    */

  • @poojalahane2584
    @poojalahane2584 7 หลายเดือนก่อน +2

    I really like sirr..love your contenst a lot........♥♥

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

    No one is teaching this stuff. Such a god level teaching. Thank you so much :)

  • @AbhishekSoni-oo3bp
    @AbhishekSoni-oo3bp 3 หลายเดือนก่อน

    ❤ First of all, a big heart for you for making such a beautiful series. Now, the funny part... 😂 you are truly a great teacher, I was watching this on NamasteDev platform and came to just comment this. At 24:53 you actually put into my brain and read my query. Lol... Thank you Akshay !!!