Async/Await in JavaScript | JavaScript Tutorial in Hindi #59

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

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

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

    Harry bhai you are not a programmer....you are a library of all programming languages .
    Thank you for all the lessons you provide us.

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

      Really , Harry bhai is genius 🙏🙏🙏🙏

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

      ​@@CodeWithAryan_​ Yes you are right.

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

    If you plan on making a NODE JS course, you'll be my hero!!

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

      Agree 💯

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

      @@shivampandey3897 thanks but i don't have laptop
      And node isn't working on phone 😭

    • @MaazShaikh-ji2fq
      @MaazShaikh-ji2fq ปีที่แล้ว +1

      Node js is just used to run javascript it is not a language. You can search for backend development courses. Or if you mean npm then you can sear h videos for that too.

    • @ShivamYadav-cc8pf
      @ShivamYadav-cc8pf ปีที่แล้ว +3

      He is still a hero!! buddy.

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

      101 like :)

  • @MdMeraj-kq2he
    @MdMeraj-kq2he ปีที่แล้ว +3

    Harry Bhai Pahli Baar Itne Acche Async/Await Clear Hua Hai....... Wow For me its a magic

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

    Harry bhai we also need a proper guide on NodeJs/Express Js also .This gonna be a big step ahead for those who wanna be a full stack developer.

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

    bhaiya aapke wajhe se ek 14yrs boy ko 53lpa ka job lga.... hats off to you for supporting us in free in the society of only paid courses....
    (53lps package boy video in nishant chahar current video)

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

      kon h bhai wo ldka?

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

      @@youknowme3368 are bhai 14 saal ka nai hai wo ,and wo harry se nai padhai bhut dumb hai log,still harry thanks

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

    Harry knows the student's nerves! Love the way he is giving back to the community.
    Loads of Love from Pakistan. ❣

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

    This is the best explanation of async/await I have seen till now and it has helped me a great deal. Thank you very much for all those examples.

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

    This is really one of the best JavaScript course...Thank you so much Sir ❤️❤️

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

    I was that much engaged in the video that when you asked "kya harry and cherry ko bhi await krke dikhau ?" I literally answered out loud.....

  • @Swabhimanc
    @Swabhimanc 4 หลายเดือนก่อน +3

    I know I am a little late for this. But on around 13:00 when you said that p1 will execute after 2 seconds and p2 after 5 seconds. It is incorrect. p1 will execute after 2 seconds and p2 will execute parallel to p1 and fulfill after p1 after 3 seconds. await keyword is not stopping the promise from getting fulfilled.
    If you setTimeout of p1 greater than p2, then "Fetched Bangalore Weather:" will get immediately executed. Thanks.
    And excellent course Harry bro

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

      Ye prob mujhe bhi thi

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

      you are wrong i just tested it, i set p1 value to 4 second and p2 value to 2 seconds to see what's gonna happen, and because of "await" keyword p1 takes for 4 second and p2 takes additonal 2 seconds to complete, in total 6 seconds not 4 seconds which means "await" keyword make your promise work synchronously.

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

    This javascript playlist is Really Awesome !😍😍😍😍😍

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

    Hi harry, Thanks for this series. I am following a web development course. The topic of promises, even though taught was going over my head. Thanks for clarifying. I appreciate you taking your time.

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

    maza aara hai harry sir , i cant beleive you made me fall in love with javascript than any other language

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

    Everyone appreciating Sandeep Maheshwari. I bow down to you Bhai ⭐🎈

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

    harry bhai maja aa gaya....async await is just 🧨🔥

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

    I love the way of your explanation. Harry bhai samjaye or samaj n aye... not possible.
    Thanks a lot bro.!

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

    Bhi Harry bhi jayse aur teacher aaagay na to bhi sare world k next 10 years me humara generation he rule karega 😜😜😜😜
    Ku ki bhot log he jo costly educational afford nahi karsakte

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

    I watch this video 2 times and now I understand clearly

  • @Royal_Queen-ASK
    @Royal_Queen-ASK 2 ปีที่แล้ว +1

    Sir you are very amazing teacher and youtuber ❤❤❤❤❤❤❤❤

  • @Mangal-n2t
    @Mangal-n2t หลายเดือนก่อน

    harry bhai is programming library 😍🥰

  • @JaspreetSingh-bw6hs
    @JaspreetSingh-bw6hs 24 วันที่ผ่านมา

    Thank you Harry Sir Apne bohot accha samjaya . You are great tech guy

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

    00:00 Async Await simplifies promise handling
    02:47 Using async functions in JavaScript
    05:37 Understanding Promises in JavaScript
    07:56 Using await to store weather data in variables
    10:40 Demonstration of using promises to fetch weather data for Delhi and Bangalore
    13:15 Control the flow of your program with await and async functions
    15:45 Making a function async allows for parallel execution and proper flow of execution
    17:58 Learn async await by revisiting promises

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

    Solution of Problem at 13:45
    async function sum() {
    let a= new Promise((resolve, reject) => {
    setTimeout(()=>{
    resolve(10)
    },2000)
    })
    console.log("Fetching Value for a1");
    let a1= await a
    console.log("Value for a1 is fetched ie:- "+a1)

    let b= new Promise((resolve, reject) => {
    setTimeout(()=>{
    resolve(20)
    },4000)
    })
    console.log("Fetching Value for b1");
    let b1= await b
    console.log("Value for b1 is fetched ie:- "+b1)


    let c= new Promise((resolve, reject) => {
    setTimeout(()=>{
    resolve(30)
    },6000)
    })
    console.log("Fetching Value for c1");
    let c1= await c
    console.log("Value for c1 is fetched ie:- "+c1)
    let d1= a1+b1+c1;
    console.log("Value for d1 is "+d1)
    }
    sum()
    // Like if it Helps you so that i can know :)

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

    Supebbbb😍😍❤️ sir😎❤️ aap great Teacher ho mene aap se bahut kuch sikha he
    🙏Bhagwan aapko lambi umar De taki hame aage bhi aapka sath mil sake

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

    All works is going very well until now and most things you are answering very well and in short words and by practicing the query is sharpening the mind.
    😙😙😙😙😙😙😙😙....💕
    so much flying PUPPIYAN for you.... BRO

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

      asleel hai ye launda.😲😲😲😲

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

    Harry bhae such a great teacher and a great teacher can change real world

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

    harry bhai buhat allaaw.
    love from Pakistan.
    aj sahi say async / await samjh aya.

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

    Maza aagaya bhai saab. Thank you from bottom of my heart. Love and support. Always.

  • @30rajkumarlxhh67
    @30rajkumarlxhh67 ปีที่แล้ว

    big fan sir love you harry bhaiya i am watching your videos since 3 year love you

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

    Harry Bhai!! Again aapko vapas 1 baar Salaam!!🫡🫡🫡
    Mei 1 product pe kaam kar ra hu company me. Aapke ye video se Beta&Gamma environment me 1 bug catch ho gaya.
    Thanks very much Harry Bhai!!!🙏🙏🫡🫡

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

    finally I cleared this concept thanks Harry bhai

  • @ShivamKumar-ie1je
    @ShivamKumar-ie1je 2 ปีที่แล้ว +1

    Happy to see this, that you motivate me learn advance concept without fearing. Bcz these kind of video going bouncer watching first time.
    But i am follow your guidence, i am watching the some video 2-3 times and also read note carefully.
    Thank u 😊❣

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

    you know how to deliver great Mentor and teacher

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

    If some one has not understood Async/Await by this video then first watch old Async/Awaitlecture of code with harry. Much simpler example is given in his old video then come backend re watch this video.

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

    1 bar aur dekhne me koi burai nahi ha
    me to 5 bar dekh rha hoo
    but still fun and informative

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

    I want real world example with the specific project..

  • @m-series0001
    @m-series0001 ปีที่แล้ว

    bhai u r amazing seriously

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

    harry bhai aapke padhane ke tarike se pyar ho gya hai sirf javascipt hi nhi aap jo bhi chij padhayenge usse pyar ho jayega

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

    maja aa gaya harry bhai async await padh ke....it is like controlling RAM memory in actual sense

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

    well explained, Thank you Harry bhai😄

  • @vansh1190
    @vansh1190 2 ปีที่แล้ว

    Day59#100DaysOfCode with CCODEWITHHARRY,
    JavaScript,
    today i learned about await and async function in JavaScript.

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

    nice sir
    thank you harry bhai

  • @SHERSHAAH555
    @SHERSHAAH555 2 ปีที่แล้ว

    to at the end harry bhai ye batayiye ki .then jayda use krna chahiye ya async and await

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

    Harry bhai nodeJs ka bhi course banao yrr. We need it 😃😃

  • @sup-monika
    @sup-monika ปีที่แล้ว

    Great explaination. Thanks Harry and cherry also

  • @umarjanbhat3819
    @umarjanbhat3819 2 ปีที่แล้ว

    The JS series is going great #HarryBhai

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

    You are awesome 😎

  • @hemantgabra7652
    @hemantgabra7652 2 ปีที่แล้ว

    awesome awesome awesome...............

  • @skannu3155
    @skannu3155 2 ปีที่แล้ว

    Explained perfectly Harry bhai 👌👌👌

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

    you are great sir

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

    best course ever

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

    async function func1(){
    console.log("hello func1")
    let p1=new Promise((resolve,reject)=>{
    setTimeout(()=>{
    console.log("p1 4s")
    resolve(4)
    },4000)
    })
    let p2=new Promise((resolve,reject)=>{
    setTimeout(()=>{
    console.log("p2 3s")
    resolve(3)
    },3000)
    })
    await p1;
    await p2;
    }
    func1()
    o/p : hello func1
    p2 3s
    p1 4s
    shouldnt the o/p be
    hello func1
    p1 4s
    p2 3s

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

    Very Nice Tut🔥🔥

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

    Brother u r inspiration for us, plz 🙏go on sandeep maheshwari show

  • @adityagupta2053
    @adityagupta2053 2 ปีที่แล้ว

    Sir plz make kivy tutorials....I have searched on youtube but didn't find any tutorial in which everything is explained clearly

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

    this video is very helpful for my thanks brother

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

    this was very helpful! thanks bhai!

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

    An Async function always returns an Awaited Promise. Other values are wrapped in a promise automatically

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

    ❤❤ se Thank you for 59

  • @awesomeguy6427
    @awesomeguy6427 2 ปีที่แล้ว

    projects shuru hote hi pyaar badhta chala jayega.

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

    Harry Bhai plz make a series on nodeJS using express, mongoDP compass, mongoose, and postman. I have learned HTML CSS Javascript from your channel, and currently learning the backend things.

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

    Include advance JavaScript like spread,rest,destructure operator

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

    goat for a reason♨

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

    Thank you Harry Bhai

  • @Hiteshkumar-fn8gi
    @Hiteshkumar-fn8gi ปีที่แล้ว

    I observed one issue here. 13:40 Delhi weather printed after 2 seconds and bangalore weather printed after 3 seconds from printing delhi weather. Try setting both timeouts to 5 secs and you will notice both delhi and bangalore weather prints at the same time after 5 seconds, instead of printing first delhi after 5 secs and then bangalore after 10 secs.

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

      I don't think that's an issue, since both of them are called one after another (which almost at the same time), it is supposed to happen. If you want bangalore weather printed after 5 seconds from the completion of delhi weather, you can just write the await for delhi weather just before the settimeout of bangalore weather

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

    Thankyou harry bhai❤

  • @debuggeracademy7510
    @debuggeracademy7510 2 ปีที่แล้ว

    Harry bhai superb 👌

  • @aarushc
    @aarushc 2 ปีที่แล้ว

    Amazing Tutuorial Sir.

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

    Harry bhai , You are awesome bro ! The way you explain things in a very simple manner is really an art .

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

    Thank you sir for creating this video!

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

    1:49 who or what is on your right side
    🤔

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

    Question - JavaScript is a Single threaded language, then how multiple async. functions can run parallelly. ??

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

    Great video 👍

  • @kmr.hacker983
    @kmr.hacker983 2 ปีที่แล้ว

    sir please upload video on how to download python on window 7( lenevo laptop) with 32 bit process or ( I read in10th class) I want to learn python with your videos. your learning skill is best

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

    Well explained.

  • @feedstreetdogs5993
    @feedstreetdogs5993 2 ปีที่แล้ว

    very nice explanation sir maza aa gaya

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

    Harry Bhai please next course full nodejs

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

    Thnxs for everything

  • @Demon-Senpai
    @Demon-Senpai 2 ปีที่แล้ว

    Harry bahai plz java in one video PLZ PLZ
    Ur courses are very helpfull

  • @adkathait7569
    @adkathait7569 2 ปีที่แล้ว

    Q&A banado harry bhai

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

    amazing video

  • @VivekKumar-tk5tt
    @VivekKumar-tk5tt ปีที่แล้ว

    hats off to your teaching brother, but I don't think the bangloreWeather promise is waiting till the delhiWeather promise is resolved means they both are running parallelly.
    In order to run the bangloreWeather promise after the resolution of delhiWeather promise, we have to put these promises inside of a function and await those functions instead of awaiting the promises.
    Like this:-
    let weather = async () => {
    let weatherDelhi = () => {
    return delhiWeather = new Promise((resolve, reject) => {
    setTimeout(() => {
    resolve("21 deg")
    }, 2000);
    })
    }
    let weatherBangalore = () => {
    return bangaloreWeather = new Promise((resolve, reject) => {
    setTimeout(() => {
    resolve("26 deg")
    }, 5000);
    })
    }
    console.log("Fetching delhi's temp...")
    let dw = await weatherDelhi()
    console.log("Delhi temp: ", dw)
    console.log("Fetching Bangalore's temp...")
    let bw = await weatherBangalore()
    console.log("Bangalore temp: ", bw)
    }
    console.log("Welcome to weather control room:-")
    weather()
    Please correct me if i am wrong !

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

    good one

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

    Bahot sahi

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

    excellent

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

    Harry Bhai i wikipedia of all Programming and software development industry.Harry bhai we need tutorial on mean stack development please make a course on "MEAN STACK" development it will be helpful for us.

  • @sonuquraishi8244
    @sonuquraishi8244 2 ปีที่แล้ว

    Harry Bhai Mai Aapka ye playlist Ka last video hi dkh rha tha Tu Aapne upload Kiya video

  • @adityakanade7165
    @adityakanade7165 2 ปีที่แล้ว

    Pyarr to hogaya hai already Javascript se😁

  • @LuciferSam-nq9nd
    @LuciferSam-nq9nd ปีที่แล้ว +1

    kindly check the code again harry bhai. benglore weather saperately 5 seconds nhi le rha. vo delhi weather ke 2 seconds bhi count kr rha hai.jis vjh se benglore weather wait nhi kr rha jo ki await ki vjh se krna chahiye.

  • @sudhanshukumar4380
    @sudhanshukumar4380 2 ปีที่แล้ว

    make a series on how to make websites using python

  • @Rohitkumar-wv1qf
    @Rohitkumar-wv1qf ปีที่แล้ว

    Well and Good

  • @anmolbhargava2511
    @anmolbhargava2511 2 ปีที่แล้ว

    Thanks for this!

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

    If I want to give a then() to "a" after that await, how would I give it?

  • @AnkushRana-p9h
    @AnkushRana-p9h 10 หลายเดือนก่อน

    maza aa gaya...

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

    Harry bahi nodejs and express plssssssss love yaaa

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

    harry bhai, startting me apne kaha tha javascript line by line execute hoti hai, usko parallel chalane kel liye promises ka use hua, ab usi code ko execute hone se rokne ke liye async await ka use hua, jaise shuru me javascript ka behavious tha, please explain this point.

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

    await matlab
    ruko zara sabar karo

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

    I think physics wallha deal with you Harry bro for their new cs coaching. Please don't leave us alone. We are support you . Don't remove video from TH-cam ❤️❤️❤️❤️😭😭😭

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

      What are you talking about? is it really true!?🧐🧐😭😭

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

      @@imtiyazahmedkhan9597 may be happen because PW now starting coding course for students so... . Also Harry bro no 1 teacher in India

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

      @@sunitamohapatra653 As long as Harry sir doesn't say it himself, we have nothing to worry about 👍👍

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

    grasped!

  • @udayan285
    @udayan285 2 ปีที่แล้ว

    Thanks