Promises | Ep 02 Season 02 - Namaste JavaScript

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 ก.ค. 2024
  • Promises is the new way of handling asynchronous operations in JavaScript. This episode of Namaste JavaScript Season 2 will explain how Promises work in JavaScript along with code examples in detail.
    00:00 - Introduction
    00:50 - Code Example of Callbacks and Promises
    08:05 - Promise.then function
    09:30 - Callbacks vs Promises
    11:23 - Importance of Promises
    12:22 - Promise Object in Browser
    15:58 - Deep dive into Promise States
    21: 52 - Promise Interview Question
    25:20 - Promise Chaining in JavaScript
    30:13 - Common mistake while Promise Chaining
    33:17 - Recap of the video
    36:22 - Teaser of the Next Video
    37:11 - Homework of this episode
    38:32 - Thank you for watching Namaste JavaScript 🙏
    If you find this video helpful,
    Please support me by giving a Super Thanks contribution to the video ♥️
    If not by money,
    you can also support this video series, by sharing it with your friends on Social Media. 🙏
    I'll give my best to come up with great content and everything absolutely for free on TH-cam. 😊
    Also, give it a thumbs up and subscribe to my channel for more such videos. 🔔
    Link to Subscribe: th-cam.com/users/akshaymarch...
    Cheers,
    Akshay Saini
    akshaysaini.in
    Stay Connected:
    LinkedIn - / akshaymarch7
    Facebook - / akshaymarch7
    Instagram - / akshaymarch7
    Twitter - / akshaymarch7
    #NamasteJavaScript #AkshaySaini

ความคิดเห็น • 2.2K

  • @beinginthegame5125
    @beinginthegame5125 ปีที่แล้ว +496

    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 🙏

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

      Thank you so much for supporting my channel. This means a lot. ❤️

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

      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?

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

      @@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 :)

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

      @@ayushi8412 No

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

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

  • @jagrutsharma9150
    @jagrutsharma9150 ปีที่แล้ว +400

    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()

  • @akashbadonia9750
    @akashbadonia9750 13 วันที่ผ่านมา +2

    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.

  • @yashvantryadav
    @yashvantryadav 10 หลายเดือนก่อน +51

    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()

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

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

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

      bro thanks a lot.....lots of love.....❤❤❤❤❤❤❤❤

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

      Bro we can bear with you even 1hr long...You never disappoints us🙂

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

      It was really amazing as previous videos. One of the best explanation on TH-cam.

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

      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?

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

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

  • @faizanahmed9304
    @faizanahmed9304 ปีที่แล้ว +176

    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.

    • @prasadmadushan
      @prasadmadushan ปีที่แล้ว +13

      You might add to list -> promise result is immutable

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

      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?

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

      @@ayushi8412 If you can master CS topics like DSA, DBMS or OS then you can still apply to top MNC's

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

      @@ayushi8412 hii what are you doing now?

  • @subhashinisahu3398
    @subhashinisahu3398 9 หลายเดือนก่อน +11

    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)

  • @shreyashukla4764
    @shreyashukla4764 8 หลายเดือนก่อน +11

    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.

  • @rohitsingh-xj1ey
    @rohitsingh-xj1ey ปีที่แล้ว +163

    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
      @akshaymarch7  ปีที่แล้ว +8

      ♥️

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

      @@akshaymarch7 which font family use in this video plz send reply

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

      if you know which font family use in this video plz send reply

    • @VimalKumar-ts7xn
      @VimalKumar-ts7xn ปีที่แล้ว

      @@rajankhunt7002 menlo

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

      #masai

  • @kamalendubaidya6515
    @kamalendubaidya6515 ปีที่แล้ว +106

    Love the way you explain the topics with so much passion. Grateful for your videos 🙏🙏

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

      Thank you so much for supporting my channel, Kamalendu. This means a lot. ❤️

  • @larzchannel5975
    @larzchannel5975 5 หลายเดือนก่อน +1

    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

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

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

  • @KrishnaKumar-ng9sx
    @KrishnaKumar-ng9sx ปีที่แล้ว +73

    Thanks! Your videos are helpful in understanding and loving javascript and in career. A small contribution from my side for your huge efforts.

    • @akshaymarch7
      @akshaymarch7  8 หลายเดือนก่อน +7

      Thank you so much for supporting my channel. This means a lot. ❤️

    • @abhishekkumar-fe8lw
      @abhishekkumar-fe8lw 5 หลายเดือนก่อน +1

      aur 900 rupe kero fir pin hoga tumhara comment

    • @RajneeshYadav-yl2th
      @RajneeshYadav-yl2th 2 หลายเดือนก่อน

      @@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.😂😂

  • @anjumshaikh1217
    @anjumshaikh1217 ปีที่แล้ว +19

    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.

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

    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

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

    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🙏

  • @umang-bhatt
    @umang-bhatt ปีที่แล้ว +74

    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.

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

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

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

    Well explained. Just saw your first video and I am blown away by the way you have dig in deep to explain every single detail. Looking forward to check out more of your videos

  • @user-tb3mm6dl3z
    @user-tb3mm6dl3z 2 หลายเดือนก่อน +3

    God wants this guy to teach people. Greetings from Russia❤

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

    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.

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

    That thumbnail, that eagerness to teach, that content, everything is awesome 🔥. You are literally a god in JavaScript teaching 🙏

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

    Thank you so much! Couldn’t find any other video that could explain promises better 🙏🏻

  • @dhaneshawati7923
    @dhaneshawati7923 8 หลายเดือนก่อน +2

    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 🙏

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

    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.

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

    The excitement you show to explain us is remarkable! ☺️❤️ Please continue the pace. 😊😁

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

    Awesome Series! I am not a huge fan of watching courses, but I was really blown away.
    And I did learn the definition of a promise.
    -> A promise is an object which is a representation of eventual completion and rejection of an async operation.
    -> We use promises because it prevents us from callback hell and inversion of control. By the introduction of .then() (promising chaining) we have control over our program. Because when we use .then() we attach a callback function to it and don't pass a callback function in it, so we have control of our program/function.

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

    Excellent explanation and tutorial. I'm confident that everyone can comprehend Promise if they pay close attention. An excellent Promise tutorial.

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

    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

  • @raomusic619
    @raomusic619 ปีที่แล้ว +11

    Thanks from bottom of the ❤, explaination dil chu liya, keep it up... Eagerly waiting for next episode.

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

      Thank you so much for supporting my channel, Abhishek. This means a lot. ❤️

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

    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.

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

    First of all, Thank you Akshay for your hard work to explain JS in a easy and understandable way, coming to the HW you gave:
    A promise is an Object which represents an eventual completion of an async operation.
    The Big advantage is that we can be rescued from the callback hells and also we have the control of the programme. Also promises helps us to resolve the issue of Inversion Control and we can have the programme in a chaining way using the then method.

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

    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 :)

  • @aakashsingh5132
    @aakashsingh5132 ปีที่แล้ว +40

    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.

  • @user-xy8it2zu8s
    @user-xy8it2zu8s 11 หลายเดือนก่อน

    had watched many video on Promises but no one had explained better than you... great video

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

    I love the way you explain the complex stuff so easily and literally enjoy while doing it :)

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

    No one can beat your lecture content , passion of teaching, your energy
    Dope content as always 🔥🔥🔥

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

    Thank you very very much for this series. Literally falling in love with JavaScript by getting to know it better.😍
    Was waiting for this video for a long time.😭
    Please async-await next.🙏

  • @user-vz1jm3vv2h
    @user-vz1jm3vv2h 9 วันที่ผ่านมา

    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

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

    Promise is an obejct thats represents the eventual completion of an asyn operation. Thanks to you, I learned JS more deeply now that I love Javascript

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

    We need more tutorials from experts like you. How I wish there's some standards for tutorial videos on this platform so people won't waste their time.
    Would you care to create a ReactJs series? It excites me to see how you will deep dive into each topic. Please keep it up and don't be conscious with
    time. We appreciate your work man!
    Assignment:
    My understanding: Promise takes output of a function as undefined obj(as a container value)to be assigned actual output values at a later time. This allows for a guaranteed execution
    of a callback in an ASYNCHRONOUS OPERATION.
    Definition: Promise is an obj representation of an eventual completion or failure of an asynchronous operation:)

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

    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.

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

    Your teaching skills are amazing and your passion for Javascript is contagious! Thank you for the videos :]

  • @mishalk5186
    @mishalk5186 7 หลายเดือนก่อน +1

    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

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

    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.

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

    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

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

    A promise is an object which represents the eventual completion or failure of an async operation.
    this heavy defination now fit in my mind.

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

    video is great, At the end funny touch of cramming "The Promise object represents the eventual completion of an asynchronous operation".

  • @ArymanRawat
    @ArymanRawat ปีที่แล้ว +10

    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

  • @lakshaykapoor2547
    @lakshaykapoor2547 ปีที่แล้ว +18

    A promise is an object hat represents the eventual completion of an asynchronous operation.
    What an explanation.. you are a gem for many learners!!

  • @meghabathla7167
    @meghabathla7167 วันที่ผ่านมา

    Promises are the object that show eventually completion or failure of an asynchronous operations. It has two properties ie, promiseState and promiseResult. In another words we have a promise object that will eventually fill and the callback function that were attached to that promise object.
    Promise is importantly when we are looking to fetch data from api and then we want to execute few functions based on that value. The best part of promise is we can't mutate the value of promise object.

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

    Promise is an object representing an eventual completion or failure of an asynchronous operation. YEAAHH I learned it

  • @nandishj.u.7886
    @nandishj.u.7886 ปีที่แล้ว +3

    What is Promise?
    Promise is an object that represents eventually completion of async() operation.
    Importance of Promises:
    Trust worthy, Inversion of Control(IOC),Promise chain, States(Pending, Fullfilled, Reject)
    Thank you so much brother for an awesome explanation ❤

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

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

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

    What a Great Explaination! hats Off To YOU ❤..
    You made my day more meaningful..
    Thank you sir😊😊😊

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

    Thanks alot for teaching JavaScript in depth with so much passion. It has really helped alot and very grateful for your videos!

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

      Thank you so much for supporting my channel, Arpit. This means a lot. ❤️

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

    ohhh man i cant believe it i watch the whole 39 minute video without a single pause. Seriously love it

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

    bro your explanation is the purest form of simplicity

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

    there no boring at all while watching your videos continually and easy to learn thank you

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

    Please be consistent, love your content always.

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

    Your energy is unparalleled. Hands down the best content on youTube. Thanks you for making 'Promises' so much easier and fun!

  • @dasojushiva8663
    @dasojushiva8663 20 วันที่ผ่านมา

    @akshay saini bhai, one thing that keeps your videos watchable again and again is the little humor that you add.

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

    Thank you so much for what is to me the best explanation for Promises I have ever heard.

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

    Finallyyyyyyyyyyyyyyy..... THE WAIT IS OVERRR... CAN'T ARTICULATE MY EXCITEMENT INTO WORDS... JUST GRATEFUL... THANK YOU SO MUCH AKSHAY SAINI 🙏🙏🙏🤩🤩🤩🔥🔥

  • @vipinsurvase71
    @vipinsurvase71 5 หลายเดือนก่อน +9

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

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

    Thanks a lot.
    For the first time I understood Promise in this clear way.

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

    Thank You for such a beautiful explanation and just to mention loved the last 20s of the Video. Thank You

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

    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 🙏🏿

  • @meghanavuppala6687
    @meghanavuppala6687 ปีที่แล้ว +9

    Thank you for sharing such valuable content!

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

      Thank you so much for supporting my channel, Meghana. This means a lot. ❤️

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

    Hi, you are teaching the javascript in amazing way & the concepts are so clear to understand,
    Can you please cover the more topics which are asked in js interviews like arrays, spread & rest operator, debouncing, throttling, memoization, prototypes,etc

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

    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 🇵🇰

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

    Please consistently upload videos🥹, so that we can able to sync with previous video reference and examples.

  • @AshutoshKumar-ul3fp
    @AshutoshKumar-ul3fp ปีที่แล้ว +7

    Thanks! And please continue this series

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

      Thank you so much for supporting my channel, Ashutosh. This means a lot. ❤️

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

    Best video on promises so far I have seen so many videos.
    Thank u brother

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

    Promises is an object that represent eventual completion of async operation
    Promises help US resolving issues like call back hell and inversion of control
    Thanks for best explanation

  • @poojamahtha2780
    @poojamahtha2780 5 หลายเดือนก่อน +3

    A promise is an object that represents the eventual completion of an async operation.

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

    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).

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

    I appreciate & salute the passion you have for teaching...!! Loved your teaching. Learnt both JS and ReactJS from you.
    Thanks.

  • @prateekrai7030
    @prateekrai7030 8 วันที่ผ่านมา

    the end 😆 I will remember the definition for life. Love this video

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

    Thank you Akshay for such a great work..

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

      Thank you so much for supporting my channel, Maruthi. This means a lot. ❤️

  • @anujshrivastava6408
    @anujshrivastava6408 ปีที่แล้ว +178

    Thanks!

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

      Thank you so much for supporting my channel, Anuj. This means a lot. ❤️

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

      @@akshaymarch7 good work bro😊

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

      ​@@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.

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

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

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

      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.

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

    Your explanations are just amazing Akshay...Thanks a lot for this kind of explanation.

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

    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

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

    31:10 "we always return a promise from a promise when we are chaining them"

  • @sankara-sabapathy
    @sankara-sabapathy ปีที่แล้ว +4

    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💝

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

    A promise is an Object , and that object represents the eventual Completion or Failure of an Asynchonous Operation. Thats It , Thank You Akshay Bhaiya

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

    The Best explanation that I have ever heard..Thanks for the nice and valuable info..keep it up brother

  • @robertobenedit
    @robertobenedit ปีที่แล้ว +24

    FIIIIINAAAAAAALLLLLLLLLY!

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

      I wait so long for you sharing your thought about this topic! LOVE FROM ARGENTINA!

  • @shaileshkrdubey6899
    @shaileshkrdubey6899 ปีที่แล้ว +14

    You have taught me so many things brother thank you so much :)

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

      Thank you so much for supporting my channel, Sailesh. This means a lot. ❤️

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

    Superb explanation. Thank u so much Akshay sir for these videos.

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

    Love you explanation, you made understanding promise really easy. Thanks, really Good job 👌

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

    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.

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

    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".

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

    Promise is an object which represnts eventual completion or failure of an async operation.
    Thank you Akshay!

  • @abhilashbn7414
    @abhilashbn7414 9 วันที่ผ่านมา

    Promise is an object which represents eventual completion or failure of asynchronous operation.
    And Thank You 😊😊

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

    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.

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

      helpful tip

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

    38:44 that promise definition matra is heard even in my sleep now😅. Superb edit.

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

    The Myth, The Legened, The Miraculous: Akshay Saini!

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

    Promise is an object that represent the eventual completion of an asynchronous operations. :) You are awesome bro.

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

    The way you are explaining a topic is very good really I love it ☺️