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

preview_player
Показать описание
Wanna dive deep into React JS with me?
Use coupon code : CODE72 and register now by link below. Only valid for first 500 students.
Running heavy discounts right now, register today!

Whether you're a seasoned developer or just starting your coding journey, this tutorial ensures a deep understanding of each API, allowing you to streamline your code and enhance your JavaScript projects. Stay ahead of the game with our insightful guide and take your JavaScript skills to the next level!

Timestamps:
0:00 - Introduction to JavaScript Promise APIs
28:37 - Revision of all the Promise APIs
45:20 - Interview Questions + Difference between settle, resolve, reject, fulfillled
55:20 - Conclusion and key takeaways
57:27 - Information about Namaste React course

If this video was helpful, give it a thumbs up and subscribe to my channel for more such videos. 🔔

If you want me to cover any specific topic, then comment down below. I would be happy to help you.

Cheers,
Akshay Saini

Stay Connected:

#Javascript #JavascriptInterviewQuestions #AkshaySaini
Рекомендации по теме
Комментарии
Автор

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.

gururajchadaga
Автор

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

AbhishekYadav-wcvz
Автор

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 🔥🔥🔥🔥

nitink
Автор

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 !!!

yashyk
Автор

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 🌟

PankajSingh-jzcd
Автор

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

mohitjain
Автор

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 !

prachi_arora
Автор

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.

harishkanuka
Автор

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!

amanmanojpreeti
Автор

respect for such teachers who are helping the coders selflessly.

JangBahadur
Автор

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 🔥

tanzirou
Автор

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

riyakansal
Автор

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

shubhammali
Автор

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

amayamathur
Автор

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

pekalarajesh
Автор

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!

shubhampatil
Автор

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🌸🌸🌸🌸🌸🌸🌸🌸

nikhilsharma
Автор

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

skreddysasi
Автор

❤❤❤❤❤❤U are teh best teacher I love your teaching style ❤️❤️❤️❤️❤️❤️

DebiprasadDas-jv
Автор

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

ankitadewari