Promises in Javascript

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

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

  • @FaizanKhan-gfaizank
    @FaizanKhan-gfaizank ปีที่แล้ว +37

    Key takeaways from this video:-
    1.) Promises come as a result of asynchronous tasks in Javascript.
    2.) While calling external json data through fetch(), we get a promise on console.
    3.) await can only be used with async.
    4.) async function getData(){
    const responseFromServer= await fetch(' Link to json data');
    console.log(responseFromServer);
    } is an example of using async and await.
    5.) For better output of json data we can use the console.log statement as:-
    console.log(await resultFromServer.json());
    6.) fetch() can also be executed as follows:-
    fetch(' Link to Json data').then( (data) => {
    console.log(data);
    }).catch( (error) => {
    console.log(error);
    });

    • @mannujr.685
      @mannujr.685 10 วันที่ผ่านมา

      well done bro

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

    U sure are underrated.
    I am gonna watch your videos specifically for the next few months.
    Doing a great job man.

    • @mickey-bz5cf
      @mickey-bz5cf 4 หลายเดือนก่อน

      He's not, everyone else's are overrated

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

    Finally I UnderStood Async ...Promises ...
    Thank You So Much...
    Iss Se Pehle Bahot Baar Sikhne Ka Try Kiya Lekin...
    Jesa Ki Atomic Habit Mai Bataya Gaya Hai Ki///
    101 bar hathoda marne par tutne vala pathar sirf 101 vale mai nahi tut ta...
    uske piche bhi 100 hathode lge hote hai same vhi hua hai ya kya hua mujhe nhi pta parr iss video se bahot jyada achi clarity mill gyi hai...
    Thank You So Much 😊❣

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

      Absolutely, Right, bro sir jo vs code theme use kr rhy hain iska pta hai ya nai???

  • @samirkha
    @samirkha 9 หลายเดือนก่อน +3

    The Async and await in javascript is that so simple? Wow, This video is the best way to understand the async and await concept. Thanks

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

    One of the cleanest explanation ever for Promises.

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

    samjane ka tarika bhahut hi accha hain....concept pata hain or in topic pe video vi kafi sara hain,per inki teaching alag hain baki o se...baki bas pad k wahi bol dete hain...

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

    Bro he is pure gem💎, i was struggling a lot in promises, async, await, took courses, gone through youtube videos, but my concepts were not clear, but theses 10 min made my concepts crystal clear, i just loved it. Great work bhaiya ♥

  • @Soulcode-k
    @Soulcode-k หลายเดือนก่อน

    Seriously how r u not famous in teaching😮.
    🥰i love the amount of things i get to learn from u❤❤❤

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

    Finally, I am confident in javaScript.....Thanks a ton!

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

    the way he explains the things are so simple and understandable ❤️

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

    Very well-explained and fine-made video this is. Thank you so much for this educational playlist.

  • @shi-nee7966
    @shi-nee7966 ปีที่แล้ว +1

    great video, i just read bout it yesterday but this vid made it way clearerrr

  • @trishabhaskar6543
    @trishabhaskar6543 5 หลายเดือนก่อน +7

    Maine phele Harry sir k video dekhi nhi smja kuch bhi or piyush sir ne Jo smjay ek bar me he smj gya 😅

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

      +1 mann wo new promise wali cheez hi hatadi sidha async await , yehi chaiye tha direct short explanation

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

      @@heeetv6463 😂😂

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

    Hey piyush bhaiya your explanation is Amazing ! lots of love❤❤😍😍

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

    perfectly understood the concept of async and await. Thank you sir

  • @shubhamsingh-gb5zh
    @shubhamsingh-gb5zh 6 หลายเดือนก่อน

    best explanation of async/await promises

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

    thanks so much for the effort to explain this ,well done i really appriciate !!!!!!

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

    nice explanation❤.form Bangladesh

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

    doosri jgah dekhne k baad yha aaya hu
    wha smjh nhi aaya tha
    Well explained!!

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

    Mast h bhai mast samjhata tum!!!

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

    Great explanation :)

  • @ShubhamPatil-rr4on
    @ShubhamPatil-rr4on ปีที่แล้ว +1

    Amezing explanation ♥️🚀

  • @RAHULKUMAR-jw5ll
    @RAHULKUMAR-jw5ll 5 หลายเดือนก่อน

    sir your react play list to good or better understanding thank you sir , its my humble request sir please can you upload your javascript video playlist please i want to revision js properly or better understanding with your videos thank you sir😊😊

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

    Thanks ...

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

    amazing bro

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

    Good content 👍👍

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

    Nice explanation

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

    how i understood asynch
    : muje dataa do par usne diya promise..
    baki bole hta do par m karta rha koshish...
    m gumsum sa bahta rha kar rha tha think..
    piyush bahi ka vedio dekha mujha chamka async...
    async bola m promise dunga pura par bad m..
    js log karne ko bahta rha uski yaad m..
    async async karke jab mene likha code..
    await ko aya gussa or bola leave me alone

  • @NoorFatima-pf1sq
    @NoorFatima-pf1sq 4 หลายเดือนก่อน

    Thanks 😊

  • @AaravShorts-nx3om
    @AaravShorts-nx3om 3 หลายเดือนก่อน

    Bro it's too good

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

    thanks bro

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

    Thanks Bhai

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

    Thanku brother

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

    thank u sir mughe na async await or promise samagh nahi aaya tha aapne samgha diya pata hai sir ye video mughe mere dost ne prefer ki thi or kaha tha acha lage tho thanks bol dena sir ko

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

    Sir please start new react course

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

    Bro keep going ❤

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

    WHY WE put await before resultFromServer.json()? as result from server already has data since we waited there isn't?

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

      Same question.

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

    Hi sir, yeh vs code main theme konsa hai

  • @SHREYWITHWORK
    @SHREYWITHWORK 8 หลายเดือนก่อน +6

    "MOM SAYS NO GIRLFRIEND" 😂

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

    Understood++

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

    its just the same

  • @SagarSagar-ro3fj
    @SagarSagar-ro3fj 5 หลายเดือนก่อน

    U r god .

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

    You beauty !!!

  • @AngOor-p8n
    @AngOor-p8n 5 หลายเดือนก่อน

    brother ho sake to thoda mike najdik rakhlo

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

    Ye sala prompt engineering ke advertisement wale bande ka muh dekhke mood khrab ho jata h🙃