Your teaching will have a huge impact in the world. I'm grateful for the time and energy that you put in to make such complex Javascript concepts simple. Thank you 🙏
currently I am pursuing mca from ignou (open) and before that I have done bsc mathematics .I am fresher .I wants to work at top companies.many of friends are telling with these degrees I cant join top mnc as they dont give preference to open degree .I am very much frustrated .is it TRUE?
@@ayushi8412 Ayushi actually your degree doesn't matter I myself is currently doing BCA and will do MCA in the future and I also have heard these opinions of people that you won't get a job if you're doing MCA or having a open degree but what I have seen and learned is that in today's world the top companies seeks skills over degree soo if you have really good skills then you will definitely get a job in top companies, Hope this helps :)
@@prathamjaiswal1082 I have done the MCA and I don't think it made any difference in my career. I would have grown my career for 3 more years if I had searched for a job after BCA and might have become a team leader today. not a single interviewer asked about my MCA academics
1. Before promise we used to depend on callback functions which would result in 1.) Callback Hell (Pyramid of doom) | 2.) Inversion of control 2. Inversion of control is overcome by using promise. 2.1) A promise is an object that represents eventual completion/failure of an asynchronous operation. 2.2) A promise has 3 states: pending | fulfilled | rejected. 2.3) As soon as promise is fulfilled/rejected => It updates the empty object which is assigned undefined in pending state. 2.4) A promise resolves only once and it is immutable. 2.5) Using .then() we can control when we call the cb(callback) function. 3. To avoid callback hell (Pyramid of doom) => We use promise chaining. This way our code expands vertically instead of horizontally. Chaining is done using '.then()' 4. A very common mistake that developers do is not returning a value during chaining of promises. Always remember to return a value. This returned value will be used by the next .then()
1. What are Promises? Promises are objects which are used to perform asynchronous operations. They are just like placeholders to store a future value that will be returned after some time. They contain two properties: PromiseState and PromiseResult. 2. Importance of Promises: a) Promises can help us to write trust worthy code. b) Promises are used to solve the problems of callbacks like inversion of control and callback hell. c) They give us the result prompt in three states: 1) Pending 2) Fulfilled 3) Rejected d) We can attach function to promise object and retrieve its value unlike callbacks no need to pass the function. e) Nesting can be done in Promises and with the help of that we can return the values in each individual chain. Thank you bhaiya, for this awesome explanation of Promises.
currently I am pursuing mca from ignou (open) and before that I have done bsc mathematics .I am fresher .I wants to work at top companies.many of friends are telling with these degrees I cant join top mnc as they dont give preference to open degree .I am very much frustrated .is it TRUE?
Watch Next Episode - th-cam.com/video/U74BJcr8NeQ/w-d-xo.html This Episode is a little long, but trust me everything taught is super important. Watch this video with full attention and also finish the homework given at the end of this video. All the Best. Keep Rising! 🚀
Hello Akshay Sir, your explanation is very great and very useful, I am fresher in javascript and I want to learn javascript can you tell me how to start?
- What is promise? Promise is an object, which represents eventual completion of async operation. - Why promises are important? promises are important because 1. Promises guarantee you that callback functions are called whenever they have response with them. Javascript guarantees you that callback functions are called 100%. 2. Promises guarantee you that callbacks are called once. So like traditional callbacks these are not called multiple times or not at all. 3. It provides us full control of code, so we don't need to handover or depend on external function.
Just cant believe that such precious content is free on TH-cam, after all the effort you have put in making these. Great way to learn a language. You are just awsome sir !!!!
1) promise is an object that represents eventual completion of an asynchronous operation 2) importance of promises i) promise is used for asynchronous programing in javascript ii)it resolves the inversion of control by attaching a function to promise object which excecutes once it gets the data,it guarantees the execution of function iii)it has three states pending, fulfilled, rejected , pending while data is being fetched, fullfilled once it gets the data, rejected if data doesn't got. iv)it has result which is initially undefined and change once data is fetched V)it resolve call back hell with promise chaining and it is important to use return for pipelinng of data for chaining promises Finally thank you Akshay for teaching promises
Promise is an object that represents eventual completion or failure of an asynchronous event. Advantages of promise are: 1. Promise eliminates the problem of Inversion of Control as in case of call backs. 2. Promises brings lot of trust in the transaction. 3. We can avoid callback hell by attaching callbacks to promise chains in vertical fashion. Thank you Akshay for this wonderful and knowledgeable video 🙏
Every time I have problem in JS, I come to this channel and If I find it in namaste video title I know that after watching it I will have 100% understanding of the subject which won't be a problem anymore. Thanks a lot
@@akshaymarch7 bhai decorator closure p bna do arrow p pls sab depth me , decorator jo lgta python me, bhai pls es6 major intrvw hisab bna do 30-30 min wle various topics
Mane kafi try kiya par mujhe video trim karne ka koi solution online nahi mila JS se.. Jo mila h usmein ya video blank aati h ya phir trim nahi hoti... Please help me.
I like the definition that it’s a placeholder for an asynchronous operation. I like that you are focusing on what to say in an interview because that is why I am watching these videos for review of many things
Promise is an object that represents the eventual completion of an asynchronous operation. Promises are immutable so it can't be altered as a result it helps to get rid off inversion of control that would be occurred in case callback and by chaining of promises we can get out of the callback hell. In chaining of promises we should use return to get the promise result so that we don't miss anything from the chain. Thank you sir for your efforts it's just like charity (good deeds ) and God will bless you for this selflessness.
Before watching this video, my state for concept promise was PENDING, but now I can definitely say its much better than RESOLVED 😄 Hats off for detailed discussion, it was a GEM.
1) A Promise is an object that represents the eventual completion or failure of an asynchronous operations. 2) Importance of promise is that we do not loose the control of the program, a promise object is immutable and can be send anywhere without worrying about changes, also it resolves only once either to success or failure.
Thank you sir for keeping the things in simple way. From past 6 years i have worked in .Net project and recently i have changed my role to Angular developer. I am going through Angular tutorials and documents, but i felt i need to understand the concepts in more and deep, then one of my colleague suggested go through Namaste Dev and I have stared the series from past one week & the rest is amazing. The way of your explanation giving me more confidence. Coming to Home work as per my understanding : Promise is an object that represents eventual completion or failures of an asynchronous operations. Advantages: -->It will overcome the issues like call back hell and inversion of control. -->We can use promises in any where in code and it is immutable. -->It will give guarantee and trust.
Promises is an object that represents the eventually completion or failure of an asynchronous operations. Disadvantage of callback - Callback Hell (Pyramid of DOOM) - Inversion of Control (Lost the control over the code) We overcome the Inversion of control by using promises, You are amazing teacher and explained complex things in beautiful / simple way. Thank you so much🙏
Before promise we used to depend on callback functions which have two disadvantages 1.) Callback Hell (Pyramid of doom) 2.) Inversion of control 1) Inversion of control is overcome by using promise promise is object represent the eventual completion of asynchonous operation a)A promise has 3 states: pending | fulfilled | rejected. b) As soon as promise is fulfilled/rejected => It updates the empty object which is assigned undefined in pending state. c) A promise resolves only once and it is immutable in nature. d) Using .then() we can attached the cb(callback) function. 2) - To avoid callback hell (Pyramid of doom) => We use promise chaining. This way our code expands vertically instead of horizontally. Chaining is done using '.then()' - A very common mistake that developers do is not returning a value during chaining of promises. Always remember to return a value. This returned value will be used by the next .then()
I love the way you teach, before your promise tutorial i was not able to summarise promise after your tutorial i am not able to forget promise, now the definition:- Promise are object that represent the eventual completion or failure of asynchronus operation.
Promise is an object representing the eventual completion or failure of an asyncronous function. As trust is the core of relationships, promises provide trust from an async function to an object. Promises can only be resolved once and promise objects are immutable. We could avoid the callback hell(pyramid of the doom) by writing codes in promise. In callback functions the the functions are passed inside another function, where the complete responsibility of fn depends on the web api(aka inversion of control) or other fn where as in promise the callback functions are attached to the web api. finally trust is everything. Great work akshay . Thanks a lot
promise object represents eventual completion of asynchronous operation Promises help us to solve problem of callback hell and inversion of control your content is awesome👍👍👍👍👍
Definition of PROMISE: A promise is an object that represents an eventual completion of asynchronous operation. We use it to avoid inversion of control and call back hell. immensely grateful for this masterpiece!! and your whole Playlist of JS! i love it❤ I'm just lost in your all videos to learn new concepts,topics and dive into deep learning thank you sir!! while watching your js videos don't see the time it's never happend with me. Amazed!!
Definition for Promises: An object represention eventual completion or failure of asynchronous operation. Importance of Promises : 1.To eradicate the problem of Inversion of Control. 2.To take control of the asynchronous event happening in system. 3.To make life easier.😉 Thanks for such an wonderful content. You are amazing.
Tried to understand Promises for the last 1.5 years, but patiently waited for this video to understand it one day from Namaste JS and finally this beauty❤. All I understood: A promise is an object that represents the eventual completion of an asynchronous operation.❣ Promise states - Pending, Fulfilled, Rejected💕 Use .then() function on a promise object and get the data object once the promise is fulfilled. 💓 Promise Chaining💝
A Promise is an object which represents eventual completion or failure of an asynchronous operation. Promises are immutable once resolved and they give us a lot of control over our code. They have three state pending, fulfilled or rejected. The promise object contains two parts 1) PromiseState(stores the sate of the prmise) and 2)PromiseResult(stores data)
Wow, the way you explain these topics is absolutely incredible! I love your energy and the clarity you bring to every concept. You make learning so enjoyable and easy to follow. Keep up the amazing work! 🙌👏❤
1. What is Promise in JS ? Ans : Promise is object representing the eventual completion or failure of an asynchronous operation. Thanks Akshay Bhai for learning this topics and make easy for understand.
Promise is an object representing an eventual success or failure of an asynchronous process. Promise is immutable, it cant be changed hence secure, it resolved callback hell problem, Thank you for such a deep conceptual knowledge sharing Akshay :)
A promise is an object that represents an eventual completion of an asynchronous operation. We use it to avoid inversion of control and call back hell. Thank you so much to explain it in a very pleasant way.
Hello Akshay bhaiya, I have completed 💯 % of namaste JS session 1, and my confidence level is very high, now I am fall in love ❤ of JavaScript, Eagerly waiting for promise and async awaits. I am thinking can you start a new series of DSA along with JS so it is very helpful, as you are teaching any topic in very deep.
Promises: It is an object which represent the eventual completion or failure of asyn operation. Advantages: It saves data from api called and attach the callback api which makes code run only ones. It gives developers to more control over code. Thank you for making it easy to understand. 🙏
promise is an object that represents an eventual completion or failure of an asynchronous operations; why promise are imp? 1. they are used to create a trust in transactions 2. we can pass a promise anywhere and everywhere in our program without caring about the fact that someone can mutate or edit it, since they are immutable 3. promise gives us the guarantee of being resolved only once. Such a beautiful series it is! I am in love with js😍
Heyy Akshay. As much as the content is presented so beautifully, the excitement with which you explain the stuff shows how much you love Javascript and how much you love teaching it. There's always so much to learn from you, and that's not just Javascript. Great job!!
I am a civil engineer. I searched and purchased so many courses but none of them taught me the way you did. Thank you for making my transition to this field so smooth.
Hi Akshay, I think not me, every developer are waiting for your videos so that we get a clear picture of JavaScript. Thank you so much for your knowledge
amazing videos. your simile and explanation give us huge motivation. A promise is an object that represents the eventual completion or failure of a asynchronous operation. 1. it eliminates the problem of callback hell problem in our code. 2. it has trust over chaining callback using *then* key word. 3. it also helps to overcome the inversion control problem.
1. A promise is an object which will represent eventual completion or failure of an asynchronous operation. 2. Importance of Promises: a. Promise will give control over our code. b. Promises are used to solve problems of callbacks like inversion of control and callback hell. c. In promise object we will attach the function and retrieve its value, no need to pass the function like callbacks. d. Promised has two steps: 1> PromiseState 2> PromiseResult e. Promise will give us result in 3 steps: 1> Initially it will be in pending state. 2> Then it will move to fulfilled state once our operation will be successful. 3> If our operation will fail our promise will be moved to rejected state. f. Chaining can be done in promises and with the help of this we can return values in each individual chain. Thank you so much
There is absolutely no doubt that you are the best when it comes to the explaining any topic. If someone go through Namaste JS season 1 and 2 then they can crack any tech interview for sure. Thanks a lot for this initiative and making us fall in love with JS. Only one complaint, the gap in between release of 2 videos is little longer. We all became so eager for your next video but this gap haunts us. If you can do something with it, it will be very good Thanks again. God bless you with lot of success in your life
A promise is an object, which represents that, mentioned Asynchronous operation will eventually be completed. Thanks Akshay for the courses which promise us to make our life much easier❤❤
1. A promise is an object that represents the eventual completion of an asynchronous operation. 2. Promises helps in handling asynchronous functions, they can be user over callbacks which are not trustworthy due to inversion of control. Promises also helps in making the code more readable and we can use promise chaining instead of getting into callback hell.
your explanation was very nice to listen and understand what you are tolding for us 1.Promise is an object which represents eventual complition of an async operation 2.Managing miltiple asyncronous operations and preventing callback hell and unmanageable code
Promises are javascript object representing eventual completion or failure of asynchronous operation. Promises are used to overcome inversion of control and callback hell. promises are in three states pending ,fulfilled and rejected. promises are also known as future container for the data. Thanks brother for this video.....
a promise is an object representing the eventual completion or failure of an async task. Importance of promise: 1. to prevent callback hell 2. prevent inversion of control 3. generate trust
Promises are important because they help us avoid the problems we face with callbacks, namely inversion of control and callback hell. Also, promises, once resolved are immutable; thus building up immense trust. Promises are very beautiful.
Amazing video ❤ ❤ 1. Promise is an object that represents eventual completion of an async operation 2. The promise help us to get the rid of pyramid of doom i.e Callback hell
Lovely Explanation 1. A promise is an object that represents the eventual completion or failure of an async operation. 2. A promise is helpful in dealing with callback hell and inversion of control. Promise chaining helps in making the code more readable and maintainable.
A primise is an object that represents an eventual completion or failure of an asyncronous operation 😎We use them to avoid callback hell, and inversion of control 😎 thank you, guru 🙏🏿
Promise is an object, which represents the eventual completion of the asynchronous operation in javascript. Promise has multiple benefits, to avoid call back hell, avoid Inversion of control, handle asynchronous operation easily etc.. Loved the way you teach Akshay 💯💯
Promise : A promise is an object which represents the eventual completion or failure of an async operation. Advantages : - Prevents inversion of control & build confidence (Though the responsibility to complete/fail a task remain on the piece of code returning promise only). - Ensures the immutability of data. - Ensures that whatever needs to happen on completion of an async task gets only called once (no matter how many times a promise is resolved or rejected).
1) promise is an object representing eventual completion of asynchronous operation. 2)promise helps us from inversion of control and callbacks hell. The rap at 🔚 of video 👌
1) A promise is an object that represents the eventual completion of an asynchronous operation. 2) Using promises helps in creating a trust in the transaction happening which means the developer will not loose control over the callback function or risks chances of the function being called twice or thrice thus eliminating inversion of control and callback hell. 3) There are different states of promises pending, fulfilled and rejected. 4) Promise contains promiseResult which gives the async operation response. Akshay, Thanks for making learning fun!
Bhai maja aa gya kya explain kiya hai. Salute You Sir, I feel very low while see someones code who used Promises in their async operation. After watching this video, Now i definitely say i know What is Promises and how it's works and what's are it's advantages. And how it resolve problems occurs during Callback hell.
At 16:57, we can print the promise object using console.table() to see the state (pending) and result [at the time of logging]. Since expanding a object will always show the current value rather than at the time of printing. By using "console.table", it prints the values at the logging time and provide an option to view the current value beneath it.
1 - Promesa es un objeto que representa la eventual complecion o falla en una operacion asincrona. 2 - Porque evita bugs, errores, dublicaciones y otras complicaciones al depender de una lista de callbacks de las cuales podemos no tener control, ademas produce el efecto de callback Hell, que hace que el codigo sea complejo de leer y mantener, ya que crece horizontalmente.
Promises helps us to keep control of our code with us, instead of passing control to another function. Promises ensures that our function is executed only once. Promise object is immutable, so we don't need to worry about it's immutability. It helps prevent callback hell, through promise chaining. It only has 3 states only: "Pending", "Fulfilled", "Rejected".
1. What are promises? Promise is an object that represents eventually completion or failure of an asynchronous task. Why they are used? Before promises, we have to face callback hell, pyramid of doom, inversion of control; but after using promises we have control over data which we fetch from api. Thank you Akshay sir ❤❤
so my answer will be like this :- 'A promise is an object which represents Eventual completion or failure of an asynchronous operation.' I know this is the exact answer that you have told in video but i find this is the more exact answer of this Question. and Thank you so much for the video.
Assalam O Alaikum, You are my great and wonderful mentor in teaching JavaScript. You are such an amazing talented person to teach students from your experience. Huge respect and love from Pakistan 🇵🇰
Thank you so much brother for your precious time. 1: A Promise is an object that represent eventual completion of asynchronous operation. 2. Promise come into picture because using callback function we have face callback hell and inversion of Control. CallBackHell - Nested Multiple call back function and Code should be grow vertical but it grow horizontally. Inversion of Control - We are passing function to other function. but we don't know weather it will run or not and we don't have control. 3. Advantage _ Resolved Call back Hell Problem. Code Readibilty Now we control of all function.
Thank you. Very impressive. You made it very simple to understand promises. with this i started watching all your videos. Thank you for your efforts and explanation.
Promise - A promise is an object that represents the eventual completion or failure of an asynchronous object. Use - It helps us in solving two problems: callback hell and inversion of control. Inversion of control means lose control over callback function code as we don't know if the function to which we are passing our callback will ever get called or not, or if it will call our function once or multiple times.
Thinks to be recap throughout this video as the way i understood: ----------------------------- Definition: Promise is a object that represents a eventually completion of asynchronous operations --------------------------------- Asynchronous will always return a promise It has 2 properties 1.promisestate There are 3 states are there i.Pending ii.Failed iii.Regested 2.promiseresult -------------------------- 1.It will be resolved only once 2.It is immutable which mean 3.we can't change if it is resolved FINNALLY There are one more issue are there when we use call back that is callback hell. We use promise chaining inorder to avoid that problem One thing needs to be remembered in promise chaining when multiple callback are attached with promise object try to use return statement to return that into down.
Promise is an object that represents the eventual completion or failure of asynchronous operation It has 2 parameters: State and Result States can be of 3'types: Pending, Fulfilled or Rejected Promise is resolved once and are immutable It can access through .then() It makes a transaction more trustworthy Why it is important? By using promises we can get rid off the major problems arising due to callback functions: i) inversion of control: promise is a returned object, can be used by attaching callbacks with .then, not by passing it as an argument so we retained the control over it make our transaction more trustworthy ii) Callback Hell: it can be solved using Callback chaining which make code more manageable, readable, less complex and understandable. Growing it vertically rather than horizontally *(Must use return keyword while callback chaining) Thnq bro a lot❤
1) What is promise? A) Promise is an object that represents eventual completion/failure of an asynchronous operation. 2)Why it is used? A) Promises are useful to eliminate inversion control and better readability. Topic - 3: --> Chaining promises using " .then" ----> fetch() is an api used to get/fetch data from source given. **COMMON MISTAKES IN PROMISES : --> we have to return the data when pipelining to anoteher operation. Excited to watch next video (sorry, its not a video. It is more than that..).
promise means a container for future value,if it resolve or reject user will get notify,using promsie we can avoid the issues which have when we use callbacks, we can avoid callback hell callback hell mean callback function inside another callback function inside another,code will start growing horizontaly instead of vertically,this will make difficulties in reading and managing the code. also we don't lose our control over function (inversion of control) also promise is immutable,we can pass anywhere without any restriction,means cant change the values after it resolved.
Your teaching will have a huge impact in the world. I'm grateful for the time and energy that you put in to make such complex Javascript concepts simple. Thank you 🙏
Thank you so much for supporting my channel. This means a lot. ❤️
currently I am pursuing mca from ignou (open) and before that I have done bsc mathematics .I am fresher .I wants to work at top companies.many of friends are telling with these degrees I cant join top mnc as they dont give preference to open degree .I am very much frustrated .is it TRUE?
@@ayushi8412 Ayushi actually your degree doesn't matter I myself is currently doing BCA and will do MCA in the future and I also have heard these opinions of people that you won't get a job if you're doing MCA or having a open degree but what I have seen and learned is that in today's world the top companies seeks skills over degree soo if you have really good skills then you will definitely get a job in top companies, Hope this helps :)
@@ayushi8412 No
@@prathamjaiswal1082 I have done the MCA and I don't think it made any difference in my career. I would have grown my career for 3 more years if I had searched for a job after BCA and might have become a team leader today. not a single interviewer asked about my MCA academics
1. Before promise we used to depend on callback functions which would result in 1.) Callback Hell (Pyramid of doom) | 2.) Inversion of control
2. Inversion of control is overcome by using promise.
2.1) A promise is an object that represents eventual completion/failure of an asynchronous operation.
2.2) A promise has 3 states: pending | fulfilled | rejected.
2.3) As soon as promise is fulfilled/rejected => It updates the empty object which is assigned undefined in pending state.
2.4) A promise resolves only once and it is immutable.
2.5) Using .then() we can control when we call the cb(callback) function.
3. To avoid callback hell (Pyramid of doom) => We use promise chaining. This way our code expands vertically instead of horizontally. Chaining is done using '.then()'
4. A very common mistake that developers do is not returning a value during chaining of promises. Always remember to return a value. This returned value will be used by the next .then()
Great share ❤
ok
aani
@@niharikakesarwani8290 ok
This is so helpful, thank you.
1. What are Promises?
Promises are objects which are used to perform asynchronous operations. They are just like placeholders to store a future value that will be returned after some time. They contain two properties: PromiseState and PromiseResult.
2. Importance of Promises:
a) Promises can help us to write trust worthy code.
b) Promises are used to solve the problems of callbacks like inversion of control and callback hell.
c) They give us the result prompt in three states: 1) Pending 2) Fulfilled 3) Rejected
d) We can attach function to promise object and retrieve its value unlike callbacks no need to pass the function.
e) Nesting can be done in Promises and with the help of that we can return the values in each individual chain.
Thank you bhaiya, for this awesome explanation of Promises.
You might add to list -> promise result is immutable
currently I am pursuing mca from ignou (open) and before that I have done bsc mathematics .I am fresher .I wants to work at top companies.many of friends are telling with these degrees I cant join top mnc as they dont give preference to open degree .I am very much frustrated .is it TRUE?
@@ayushi8412 If you can master CS topics like DSA, DBMS or OS then you can still apply to top MNC's
@@ayushi8412 hii what are you doing now?
A promise is an object in JavaScript that represents the eventual completion or failure of an asynchronous operation.
Amazing video as usual
Watch Next Episode - th-cam.com/video/U74BJcr8NeQ/w-d-xo.html
This Episode is a little long, but trust me everything taught is super important. Watch this video with full attention and also finish the homework given at the end of this video. All the Best. Keep Rising! 🚀
bro thanks a lot.....lots of love.....❤❤❤❤❤❤❤❤
Bro we can bear with you even 1hr long...You never disappoints us🙂
It was really amazing as previous videos. One of the best explanation on TH-cam.
Hello Akshay Sir, your explanation is very great and very useful, I am fresher in javascript and I want to learn javascript can you tell me how to start?
- What is promise?
Promise is an object, which represents eventual completion of async operation.
- Why promises are important?
promises are important because
1. Promises guarantee you that callback functions are called whenever they have response with them.
Javascript guarantees you that callback functions are called 100%.
2. Promises guarantee you that callbacks are called once.
So like traditional callbacks these are not called multiple times or not at all.
3. It provides us full control of code, so we don't need to handover or depend on external function.
Length is not at all a issue, rather it's a blessing it means the video is loaded with lot of awesome content. Thank you so much for all your efforts
♥️
@@akshaymarch7 which font family use in this video plz send reply
if you know which font family use in this video plz send reply
@@rajankhunt7002 menlo
#masai
Love the way you explain the topics with so much passion. Grateful for your videos 🙏🙏
Thank you so much for supporting my channel, Kamalendu. This means a lot. ❤️
Just cant believe that such precious content is free on TH-cam, after all the effort you have put in making these. Great way to learn a language. You are just awsome sir !!!!
1) promise is an object that represents eventual completion of an asynchronous operation
2) importance of promises
i) promise is used for asynchronous programing in javascript
ii)it resolves the inversion of control by attaching a function to promise object which excecutes once it gets the data,it guarantees the execution of function
iii)it has three states pending, fulfilled, rejected , pending while data is being fetched, fullfilled once it gets the data, rejected if data doesn't got.
iv)it has result which is initially undefined and change once data is fetched
V)it resolve call back hell with promise chaining and it is important to use return for pipelinng of data for chaining promises
Finally thank you Akshay for teaching promises
Promise is an object that represents eventual completion or failure of an asynchronous event.
Advantages of promise are:
1. Promise eliminates the problem of Inversion of Control as in case of call backs.
2. Promises brings lot of trust in the transaction.
3. We can avoid callback hell by attaching callbacks to promise chains in vertical fashion.
Thank you Akshay for this wonderful and knowledgeable video 🙏
Thanks! Your videos are helpful in understanding and loving javascript and in career. A small contribution from my side for your huge efforts.
Thank you so much for supporting my channel. This means a lot. ❤️
aur 900 rupe kero fir pin hoga tumhara comment
@@abhishekkumar-fe8lw tum to wo bhi nahi kiye,, tumhare liye bhi hai option 40 ka agar 40 rupay bhi ho account me to wahi kr dena.😂😂
Thanks alot for teaching JavaScript in depth with so much passion. It has really helped alot and very grateful for your videos!
Thank you so much for supporting my channel, Arpit. This means a lot. ❤️
Every time I have problem in JS, I come to this channel and If I find it in namaste video title I know that after watching it I will have 100% understanding of the subject which won't be a problem anymore. Thanks a lot
God wants this guy to teach people. Greetings from Russia❤
Thanks!
Thank you so much for supporting my channel, Anuj. This means a lot. ❤️
@@akshaymarch7 good work bro😊
@@akshaymarch7 Thank you so much bhaiya for teaching us in such a wonderful way. I am also fall in love with JavaScript because of you.
@@akshaymarch7 bhai decorator closure p bna do arrow p pls sab depth me , decorator jo lgta python me, bhai pls es6 major intrvw hisab bna do 30-30 min wle various topics
Mane kafi try kiya par mujhe video trim karne ka koi solution online nahi mila JS se.. Jo mila h usmein ya video blank aati h ya phir trim nahi hoti... Please help me.
Thanks! And please continue this series
Thank you so much for supporting my channel, Ashutosh. This means a lot. ❤️
Thank you Akshay for such a great work..
Thank you so much for supporting my channel, Maruthi. This means a lot. ❤️
I like the definition that it’s a placeholder for an asynchronous operation. I like that you are focusing on what to say in an interview because that is why I am watching these videos for review of many things
Promise is an object that represents the eventual completion of an asynchronous operation.
Promises are immutable so it can't be altered as a result it helps to get rid off inversion of control that would be occurred in case callback and by chaining of promises we can get out of the callback hell.
In chaining of promises we should use return to get the promise result so that we don't miss anything from the chain.
Thank you sir for your efforts it's just like charity (good deeds ) and God will bless you for this selflessness.
Before watching this video, my state for concept promise was PENDING, but now I can definitely say its much better than RESOLVED 😄
Hats off for detailed discussion, it was a GEM.
Thanks from bottom of the ❤, explaination dil chu liya, keep it up... Eagerly waiting for next episode.
Thank you so much for supporting my channel, Abhishek. This means a lot. ❤️
1) A Promise is an object that represents the eventual completion or failure of an asynchronous operations.
2) Importance of promise is that we do not loose the control of the program, a promise object is immutable and can be send anywhere without worrying about changes, also it resolves only once either to success or failure.
Thank you sir for keeping the things in simple way. From past 6 years i have worked in .Net project and recently i have changed my role to Angular developer. I am going through Angular tutorials and documents, but i felt i need to understand the concepts in more and deep, then one of my colleague suggested go through Namaste Dev and I have stared the series from past one week & the rest is amazing. The way of your explanation giving me more confidence.
Coming to Home work as per my understanding :
Promise is an object that represents eventual completion or failures of an asynchronous operations.
Advantages:
-->It will overcome the issues like call back hell and inversion of control.
-->We can use promises in any where in code and it is immutable.
-->It will give guarantee and trust.
Promises is an object that represents the eventually completion or failure of an asynchronous operations.
Disadvantage of callback
- Callback Hell (Pyramid of DOOM)
- Inversion of Control (Lost the control over the code)
We overcome the Inversion of control by using promises,
You are amazing teacher and explained complex things in beautiful / simple way. Thank you so much🙏
Before promise we used to depend on callback functions which have two disadvantages
1.) Callback Hell (Pyramid of doom)
2.) Inversion of control
1) Inversion of control is overcome by using promise
promise is object represent the eventual completion of asynchonous operation
a)A promise has 3 states: pending | fulfilled | rejected.
b) As soon as promise is fulfilled/rejected => It updates the empty object which is assigned undefined in pending state.
c) A promise resolves only once and it is immutable in nature.
d) Using .then() we can attached the cb(callback) function.
2) - To avoid callback hell (Pyramid of doom) => We use promise chaining. This way our code expands vertically instead of horizontally. Chaining is done using '.then()'
- A very common mistake that developers do is not returning a value during chaining of promises. Always remember to return a value. This returned value will be used by the next .then()
Thank you for sharing such valuable content!
Thank you so much for supporting my channel, Meghana. This means a lot. ❤️
I love the way you teach, before your promise tutorial i was not able to summarise promise after your tutorial i am not able to forget promise,
now the definition:- Promise are object that represent the eventual completion or failure of asynchronus operation.
Promise is an object representing the eventual completion or failure of an asyncronous function.
As trust is the core of relationships, promises provide trust from an async function to an object.
Promises can only be resolved once and promise objects are immutable.
We could avoid the callback hell(pyramid of the doom) by writing codes in promise.
In callback functions the the functions are passed inside another function, where the complete responsibility of fn depends on the web api(aka inversion of control) or other fn where as in promise the callback functions are attached to the web api.
finally trust is everything.
Great work akshay .
Thanks a lot
promise object represents eventual completion of asynchronous operation
Promises help us to solve problem of callback hell and inversion of control
your content is awesome👍👍👍👍👍
ohhh man i cant believe it i watch the whole 39 minute video without a single pause. Seriously love it
♥️
That thumbnail, that eagerness to teach, that content, everything is awesome 🔥. You are literally a god in JavaScript teaching 🙏
Definition of PROMISE: A promise is an object that represents an eventual completion of asynchronous operation. We use it to avoid inversion of control and call back hell. immensely grateful for this masterpiece!! and your whole Playlist of JS! i love it❤ I'm just lost in your all videos to learn new concepts,topics and dive into deep learning thank you sir!! while watching your js videos don't see the time it's never happend with me. Amazed!!
Definition for Promises: An object represention eventual completion or failure of asynchronous operation.
Importance of Promises :
1.To eradicate the problem of Inversion of Control.
2.To take control of the asynchronous event happening in system.
3.To make life easier.😉
Thanks for such an wonderful content. You are amazing.
A promise is an object hat represents the eventual completion of an asynchronous operation.
What an explanation.. you are a gem for many learners!!
Tried to understand Promises for the last 1.5 years, but patiently waited for this video to understand it one day from Namaste JS and finally this beauty❤.
All I understood:
A promise is an object that represents the eventual completion of an asynchronous operation.❣
Promise states - Pending, Fulfilled, Rejected💕
Use .then() function on a promise object and get the data object once the promise is fulfilled. 💓
Promise Chaining💝
A Promise is an object which represents eventual completion or failure of an asynchronous operation. Promises are immutable once resolved and they give us a lot of control over our code. They have three state pending, fulfilled or rejected. The promise object contains two parts 1) PromiseState(stores the sate of the prmise) and 2)PromiseResult(stores data)
Thanks 🙏
Wow, the way you explain these topics is absolutely incredible! I love your energy and the clarity you bring to every concept. You make learning so enjoyable and easy to follow. Keep up the amazing work! 🙌👏❤
1. What is Promise in JS ?
Ans : Promise is object representing the eventual completion or failure of an asynchronous operation.
Thanks Akshay Bhai for learning this topics and make easy for understand.
Promise is an object representing an eventual success or failure of an asynchronous process.
Promise is immutable, it cant be changed hence secure, it resolved callback hell problem,
Thank you for such a deep conceptual knowledge sharing Akshay :)
A promise is an object that represents an eventual completion of an asynchronous operation. We use it to avoid inversion of control and call back hell. Thank you so much to explain it in a very pleasant way.
Hello Akshay bhaiya, I have completed 💯 % of namaste JS session 1, and my confidence level is very high, now I am fall in love ❤ of JavaScript, Eagerly waiting for promise and async awaits.
I am thinking can you start a new series of DSA along with JS so it is very helpful,
as you are teaching any topic in very deep.
Yes, we need DSA series also please.
Same brother
Yes Bro please start DSA session as it's required to crack product based interviews please 🙏🏻
yes plz namste DSA
Yes please
Promises: It is an object which represent the eventual completion or failure of asyn operation.
Advantages: It saves data from api called and attach the callback api which makes code run only ones. It gives developers to more control over code.
Thank you for making it easy to understand. 🙏
promise is an object that represents an eventual completion or failure of an asynchronous operations;
why promise are imp?
1. they are used to create a trust in transactions
2. we can pass a promise anywhere and everywhere in our program without caring about the fact that someone can mutate or edit it, since they are immutable
3. promise gives us the guarantee of being resolved only once.
Such a beautiful series it is!
I am in love with js😍
Heyy Akshay.
As much as the content is presented so beautifully, the excitement with which you explain the stuff shows how much you love Javascript and how much you love teaching it.
There's always so much to learn from you, and that's not just Javascript. Great job!!
I am a civil engineer. I searched and purchased so many courses but none of them taught me the way you did. Thank you for making my transition to this field so smooth.
Hi Akshay,
I think not me, every developer are waiting for your videos so that we get a clear picture of JavaScript.
Thank you so much for your knowledge
Yes,
amazing videos. your simile and explanation give us huge motivation.
A promise is an object that represents the eventual completion or failure of a asynchronous operation.
1. it eliminates the problem of callback hell problem in our code.
2. it has trust over chaining callback using *then* key word.
3. it also helps to overcome the inversion control problem.
1. A promise is an object which will represent eventual completion or failure of an asynchronous operation.
2. Importance of Promises:
a. Promise will give control over our code.
b. Promises are used to solve problems of callbacks like inversion of control and callback hell.
c. In promise object we will attach the function and retrieve its value, no need to pass the function like callbacks.
d. Promised has two steps: 1> PromiseState 2> PromiseResult
e. Promise will give us result in 3 steps: 1> Initially it will be in pending state. 2> Then it will move to fulfilled state once our operation will be successful. 3> If our operation will fail our promise will be moved to rejected state.
f. Chaining can be done in promises and with the help of this we can return values in each individual chain.
Thank you so much
There is absolutely no doubt that you are the best when it comes to the explaining any topic. If someone go through Namaste JS season 1 and 2 then they can crack any tech interview for sure. Thanks a lot for this initiative and making us fall in love with JS.
Only one complaint, the gap in between release of 2 videos is little longer. We all became so eager for your next video but this gap haunts us. If you can do something with it, it will be very good
Thanks again. God bless you with lot of success in your life
A promise is an object, which represents that, mentioned Asynchronous operation will eventually be completed.
Thanks Akshay for the courses which promise us to make our life much easier❤❤
1. A promise is an object that represents the eventual completion of an asynchronous operation.
2. Promises helps in handling asynchronous functions, they can be user over callbacks which are not trustworthy due to inversion of control. Promises also helps in making the code more readable and we can use promise chaining instead of getting into callback hell.
You saved me twice in my interviews... Thanks for existing man.... Will always be grateful for your huge efforts
your explanation was very nice to listen and understand what you are tolding for us
1.Promise is an object which represents eventual complition of an async operation
2.Managing miltiple asyncronous operations and preventing callback hell and unmanageable code
Promises are javascript object representing eventual completion or failure of asynchronous operation.
Promises are used to overcome inversion of control and callback hell.
promises are in three states pending ,fulfilled and rejected.
promises are also known as future container for the data.
Thanks brother for this video.....
a promise is an object representing the eventual completion or failure of an async task.
Importance of promise:
1. to prevent callback hell
2. prevent inversion of control
3. generate trust
Promises are important because they help us avoid the problems we face with callbacks, namely inversion of control and callback hell. Also, promises, once resolved are immutable; thus building up immense trust. Promises are very beautiful.
Amazing video ❤ ❤
1. Promise is an object that represents eventual completion of an async operation
2. The promise help us to get the rid of pyramid of doom i.e Callback hell
Lovely Explanation
1. A promise is an object that represents the eventual completion or failure of an async operation.
2. A promise is helpful in dealing with callback hell and inversion of control. Promise chaining helps in making the code more readable and maintainable.
A primise is an object that represents an eventual completion or failure of an asyncronous operation 😎We use them to avoid callback hell, and inversion of control 😎 thank you, guru 🙏🏿
The excitement you show to explain us is remarkable! ☺️❤️ Please continue the pace. 😊😁
Please be consistent, love your content always.
Promise is an object, which represents the eventual completion of the asynchronous operation in javascript.
Promise has multiple benefits, to avoid call back hell, avoid Inversion of control, handle asynchronous operation easily etc..
Loved the way you teach Akshay 💯💯
A promise is an object which represents the eventual completion or failure of an async operation.
this heavy defination now fit in my mind.
Your energy is unparalleled. Hands down the best content on youTube. Thanks you for making 'Promises' so much easier and fun!
A promise is an object that represents the eventual completion of an async operation.
You are right 👍
Promise : A promise is an object which represents the eventual completion or failure of an async operation. Advantages : - Prevents inversion of control & build confidence (Though the responsibility to complete/fail a task remain on the piece of code returning promise only). - Ensures the immutability of data. - Ensures that whatever needs to happen on completion of an async task gets only called once (no matter how many times a promise is resolved or rejected).
1) promise is an object representing eventual completion of asynchronous operation.
2)promise helps us from inversion of control and callbacks hell.
The rap at 🔚 of video 👌
Sir Your Teaching style is so amazing!!!!!. Thankyou, I loved your ability to explain with such huge amount of enthusiasm.
May God Bless You.
Please consistently upload videos🥹, so that we can able to sync with previous video reference and examples.
31:10 "we always return a promise from a promise when we are chaining them"
FIIIIINAAAAAAALLLLLLLLLY!
I wait so long for you sharing your thought about this topic! LOVE FROM ARGENTINA!
1) A promise is an object that represents the eventual completion of an asynchronous operation.
2) Using promises helps in creating a trust in the transaction happening which means the developer will not loose control over the callback function or risks chances of the function being called twice or thrice thus eliminating inversion of control and callback hell.
3) There are different states of promises pending, fulfilled and rejected.
4) Promise contains promiseResult which gives the async operation response.
Akshay, Thanks for making learning fun!
Bhai maja aa gya kya explain kiya hai. Salute You Sir, I feel very low while see someones code who used Promises in their async operation. After watching this video, Now i definitely say i know What is Promises and how it's works and what's are it's advantages. And how it resolve problems occurs during Callback hell.
At 16:57, we can print the promise object using console.table() to see the state (pending) and result [at the time of logging]. Since expanding a object will always show the current value rather than at the time of printing. By using "console.table", it prints the values at the logging time and provide an option to view the current value beneath it.
helpful tip
1 - Promesa es un objeto que representa la eventual complecion o falla en una operacion asincrona.
2 - Porque evita bugs, errores, dublicaciones y otras complicaciones al depender de una lista de callbacks de las cuales podemos no tener control, ademas produce el efecto de callback Hell, que hace que el codigo sea complejo de leer y mantener, ya que crece horizontalmente.
Promises helps us to keep control of our code with us, instead of passing control to another function.
Promises ensures that our function is executed only once.
Promise object is immutable, so we don't need to worry about it's immutability.
It helps prevent callback hell, through promise chaining.
It only has 3 states only: "Pending", "Fulfilled", "Rejected".
1. What are promises?
Promise is an object that represents eventually completion or failure of an asynchronous task.
Why they are used?
Before promises, we have to face callback hell, pyramid of doom, inversion of control; but after using promises we have control over data which we fetch from api.
Thank you Akshay sir ❤❤
This is one of the better explanations of promises online!
Thank you so much Akshay Saini! You're Great Teacher!! We're blessed to have a teacher like you!!!
The promise is an object which represents eventual completion of an asynchronous operation
~ thanks alot bhaiya
so my answer will be like this :- 'A promise is an object which represents Eventual completion or failure of an asynchronous operation.' I know this is the exact answer that you have told in video but i find this is the more exact answer of this Question. and Thank you so much for the video.
Promise is an object representing an eventual completion or failure of an asynchronous operation. YEAAHH I learned it
Assalam O Alaikum,
You are my great and wonderful mentor in teaching JavaScript. You are such an amazing talented person to teach students from your experience. Huge respect and love from Pakistan 🇵🇰
Thank you so much brother for your precious time.
1: A Promise is an object that represent eventual completion of asynchronous operation.
2. Promise come into picture because using callback function we have face callback hell and inversion of Control.
CallBackHell - Nested Multiple call back function and Code should be grow vertical but it grow horizontally.
Inversion of Control - We are passing function to other function. but we don't know weather it will run or not and we don't have control.
3. Advantage _
Resolved Call back Hell Problem.
Code Readibilty
Now we control of all function.
you know its amazing when you can actually make notes from the comments section
Promise is an object which represnts eventual completion or failure of an async operation.
Thank you Akshay!
I was feeling sleepy before the tutorial after watching ur enthusiasm I have just rejuvenated
Thank you. Very impressive. You made it very simple to understand promises. with this i started watching all your videos. Thank you for your efforts and explanation.
I just watched it for 10 min and now I'm already loving promises
Mojai moja, really loved the way of explaining such advanced topic in such a easy way, totally impressed 😁👍
You are a life savior! Thank you for posting such amazing content 🙌
This course is a gold mine.
Promise - A promise is an object that represents the eventual completion or failure of an asynchronous object.
Use - It helps us in solving two problems: callback hell and inversion of control. Inversion of control means lose control over callback function code as we don't know if the function to which we are passing our callback will ever get called or not, or if it will call our function once or multiple times.
Thinks to be recap throughout this video as the way i understood:
-----------------------------
Definition:
Promise is a object that represents a eventually completion of asynchronous operations
---------------------------------
Asynchronous will always return a promise
It has 2 properties
1.promisestate
There are 3 states are there
i.Pending
ii.Failed
iii.Regested
2.promiseresult
--------------------------
1.It will be resolved only once
2.It is immutable which mean 3.we can't change if it is resolved
FINNALLY
There are one more issue are there when we use call back that is callback hell.
We use promise chaining inorder to avoid that problem
One thing needs to be remembered in promise chaining when multiple callback are attached with promise object try to use return statement to return that into down.
Promise is an object that represents the eventual completion or failure of asynchronous operation
It has 2 parameters: State and Result
States can be of 3'types: Pending, Fulfilled or Rejected
Promise is resolved once and are immutable
It can access through .then()
It makes a transaction more trustworthy
Why it is important?
By using promises we can get rid off the major problems arising due to callback functions:
i) inversion of control: promise is a returned object, can be used by attaching callbacks with .then, not by passing it as an argument so we retained the control over it make our transaction more trustworthy
ii) Callback Hell: it can be solved using Callback chaining which make code more manageable, readable, less complex and understandable. Growing it vertically rather than horizontally
*(Must use return keyword while callback chaining)
Thnq bro a lot❤
1) What is promise?
A) Promise is an object that represents eventual completion/failure of an asynchronous operation.
2)Why it is used?
A) Promises are useful to eliminate inversion control and better readability.
Topic - 3:
--> Chaining promises using " .then"
----> fetch() is an api used to get/fetch data from source given.
**COMMON MISTAKES IN PROMISES :
--> we have to return the data when pipelining to anoteher operation.
Excited to watch next video (sorry, its not a video. It is more than that..).
promise means a container for future value,if it resolve or reject user will get notify,using promsie we can avoid the issues which have when we use callbacks,
we can avoid callback hell
callback hell mean callback function inside another callback function inside another,code will start growing horizontaly instead of vertically,this will make difficulties in reading and managing the code.
also we don't lose our control over function (inversion of control)
also promise is immutable,we can pass anywhere without any restriction,means cant change the values after it resolved.
Promise is an object that represent the eventual completion of an asynchronous operations. :) You are awesome bro.
the end 😆 I will remember the definition for life. Love this video
I appreciate & salute the passion you have for teaching...!! Loved your teaching. Learnt both JS and ReactJS from you.
Thanks.