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

Поділитися
Вставка
  • Опубліковано 7 жов 2022
  • Link to the Repl - replit.com/@codewithharry/59A...
    Join Replit - join.replit.com/CodeWithHarry
    Download Notes - www.codewithharry.com/notes/
    Ultimate JS Course Playlist: • JavaScript Tutorials f...
    ►Checkout my English channel here: / @programmingwithharry
    ►Instagram: codewithharry
    python, C, C++, Java, JavaScript, and Other Cheetsheets [++]:
    Playlist: • Coding CheatSheets 🧾 b...
    ►Learn in One Video[++]:
    Python[15 Hr]: • Python Tutorial For Be...
    Python Advance[3.5 Hr]: • Python Programming Cou...
    Python[1 Hr]: • Learn Python In Hindi ...
    Python[2 Hr]: • Python Tutorial In Hin...
    Python[15 Min]: • 15 Minute Python Tutor...
    JavaScript[1 Hr]: • JavaScript Tutorial
    C[1.3 Hr]- • C Programming Tutorial...
    php[1 Hr]: • Learn Php In One Video...
    php[2.3 Hr]: • Php Tutorial for Begin...
    php[Project]- • Login And Registration...
    HTML[30 Min]: • HTML 5 Tutorial For Be...
    CSS[8.5 Hr]: • CSS Tutorial In Hindi ...
    CSS[1.4 Hr]: • CSS 3 Tutorial For Beg...
    Wordpress[3.2 Hr]: • How To Make a WordPres...
    Angular[2 Hr]: • Angular Tutorial in Hindi
    Java[2.3 Hr]: • Java tutorial in hindi 🔥
    Web Scraping[1 Hr]: • Web Scraping Tutorial ...
    MongoDB[2 Hr]: • MongoDb Tutorial For B...
    Numpy[1 Hr]: • Numpy Tutorial in Hindi
    Android Dev[12 Hr]- • Android Development Tu...
    Linux[1 Hr]: • Linux Tutorial For Beg...
    JQuery[1.1 Hr]: • jQuery Tutorial For Be...
    Git and GitHub[1.1 Hr]: • Git & GitHub Tutorial ...
    ►Complete course [playlist]:
    React: • React Js Tutorials in ...
    Python- • Python Tutorials For A...
    OOP Python- • Object Oriented Progra...
    Java: • Java Tutorials For Beg...
    JavaScript- • JavaScript Tutorials I...
    PHP- • PHP Tutorials in Hindi
    C- • C Language Tutorials I...
    C++- • C++ Tutorials In Hindi
    Git & GitHub- • Git and GitHub Tutoria...
    Android Dev- • Android Development Tu...
    Python GUI- • Python GUI: Tkinter Tu...
    Web Development- • Web Development Tutori...
    Python Django: • Python Django Tutorial...
    Projects Using HTML, CSS & Javascript- • Projects Using HTML, C...
    Data Structure and Algo: • Data Structures and Al...
    Follow Me On Social Media
    ►Website (created using Django Rest & Angular): www.codewithharry.com
    ►Facebook: / codewithharry
    ►Instagram: / codewithharry
    Twitter: / codewithharry
    Comment "#HarryBhai" if you read this 😉😉

КОМЕНТАРІ • 255

  • @mangalmangalam
    @mangalmangalam Рік тому +103

    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_ Рік тому +4

      Really , Harry bhai is genius 🙏🙏🙏🙏

    • @user-go6ot8ez1c
      @user-go6ot8ez1c Рік тому

      ​@@CodeWithAryan_​ Yes you are right.

  • @chandanprajapati9704
    @chandanprajapati9704 Рік тому +137

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

    • @GoSleep07
      @GoSleep07 Рік тому +5

      Agree 💯

    • @devtttt
      @devtttt Рік тому +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 Рік тому +2

      He is still a hero!! buddy.

    • @HeartofTech
      @HeartofTech Рік тому

      101 like :)

  • @vikranttyagi6091
    @vikranttyagi6091 Рік тому +35

    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.

  • @samirrobin3524
    @samirrobin3524 Рік тому +5

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

  • @prakharsrivastav4550
    @prakharsrivastav4550 Рік тому +4

    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.

  • @christosuster2924
    @christosuster2924 10 місяців тому +2

    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.

  • @MdMeraj-kq2he
    @MdMeraj-kq2he 10 місяців тому +2

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

  • @ShivamKumar-ie1je
    @ShivamKumar-ie1je Рік тому +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 😊❣

  • @CodeMagnon
    @CodeMagnon Рік тому +1

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

  • @murlimishra6502
    @murlimishra6502 Рік тому

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

  • @feniladesara
    @feniladesara Рік тому

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

  • @manavdobariya3379
    @manavdobariya3379 Рік тому

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

  • @ramprasadyadav9303
    @ramprasadyadav9303 Рік тому +3

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

  • @DHRUVINVEKARIYA
    @DHRUVINVEKARIYA Рік тому

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

  • @sangdilbiswal30
    @sangdilbiswal30 7 місяців тому

    finally I cleared this concept thanks Harry bhai

  • @technikalproblem6780
    @technikalproblem6780 Рік тому

    Thank you sir for creating this video!

  • @vishalrathor7095
    @vishalrathor7095 Рік тому +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

  • @_pankajuday
    @_pankajuday 8 днів тому

    well explained, Thank you Harry bhai😄

  • @rishabhupadhyay8165
    @rishabhupadhyay8165 Рік тому

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

  • @skannu3155
    @skannu3155 Рік тому

    Explained perfectly Harry bhai 👌👌👌

  • @sup-monika
    @sup-monika Рік тому

    Great explaination. Thanks Harry and cherry also

  • @champx549
    @champx549 Рік тому

    this was very helpful! thanks bhai!

  • @tayyabaslam1583
    @tayyabaslam1583 Рік тому

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

  • @aryansinha1818
    @aryansinha1818 4 місяці тому

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

  • @noumanashfaq2360
    @noumanashfaq2360 2 місяці тому

    this video is very helpful for my thanks brother

  • @itzallabouttech3616
    @itzallabouttech3616 Рік тому

    I watch this video 2 times and now I understand clearly

  • @usamasaud9226
    @usamasaud9226 Рік тому +7

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

  • @aarushc
    @aarushc Рік тому

    Amazing Tutuorial Sir.

  • @anmolbhargava2511
    @anmolbhargava2511 Рік тому

    Thanks for this!

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

  • @30rajkumarlxhh67
    @30rajkumarlxhh67 Рік тому

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

  • @santoshnamdev5439
    @santoshnamdev5439 Рік тому

    Thank you Harry Bhai

  • @horairahsaleem7616
    @horairahsaleem7616 Рік тому

    you know how to deliver great Mentor and teacher

  • @muhammadfaizan6408
    @muhammadfaizan6408 Рік тому +1

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

  • @priyanshutyagi_02001
    @priyanshutyagi_02001 5 місяців тому

    Thankyou harry bhai❤

  • @codetorahul
    @codetorahul Рік тому +1

    nice sir
    thank you harry bhai

  • @mohammedsaberali8052
    @mohammedsaberali8052 Рік тому

    Thank you harry bhai

  • @user-hg9sv7yr6l
    @user-hg9sv7yr6l 6 місяців тому

    maza aa gaya...

  • @m-series0001
    @m-series0001 Рік тому

    bhai u r amazing seriously

  • @ankitbaskandi2290
    @ankitbaskandi2290 5 місяців тому

    Great video 👍

  • @rishabhupadhyay8165
    @rishabhupadhyay8165 Рік тому

    Thnxs for everything

  • @vikashpandit8012
    @vikashpandit8012 Рік тому +10

    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

  • @debuggeracademy7510
    @debuggeracademy7510 Рік тому

    Harry bhai superb 👌

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

  • @GamingWithParamYT
    @GamingWithParamYT Рік тому +1

    you are great sir

  • @yashyash2194
    @yashyash2194 10 місяців тому

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

  • @yasirirfan5262
    @yasirirfan5262 8 місяців тому

    Well explained.

  • @Silent_Killer-g5w
    @Silent_Killer-g5w Рік тому +1

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

  • @umarjanbhat3819
    @umarjanbhat3819 Рік тому

    The JS series is going great #HarryBhai

  • @feedstreetdogs5993
    @feedstreetdogs5993 Рік тому

    very nice explanation sir maza aa gaya

  • @hemantgabra7652
    @hemantgabra7652 Рік тому

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

  • @anonymousviewer85
    @anonymousviewer85 2 місяці тому

    Very Nice Tut🔥🔥

  • @piyushtiwari6471
    @piyushtiwari6471 Рік тому

    Bahot sahi

  • @mithunkumars6097
    @mithunkumars6097 Рік тому +1

    You are awesome 😎

  • @aliasghar_codes
    @aliasghar_codes 7 місяців тому

    best course ever

  • @shabhyathapa7789
    @shabhyathapa7789 Рік тому +2

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

  • @dhaneshmane
    @dhaneshmane Рік тому

    amazing video

  • @anilkumarsahu8546
    @anilkumarsahu8546 6 місяців тому

    excellent

  • @truequotes44
    @truequotes44 11 місяців тому

    good one

  • @adityagupta2053
    @adityagupta2053 Рік тому

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

  • @lovkush5257
    @lovkush5257 Рік тому +1

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

  • @udayan285
    @udayan285 Рік тому

    Thanks

  • @prashanttyagi5964
    @prashanttyagi5964 Рік тому +1

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

  • @Rohitkumar-wv1qf
    @Rohitkumar-wv1qf Рік тому

    Well and Good

  • @awesomeguy6427
    @awesomeguy6427 Рік тому

    projects shuru hote hi pyaar badhta chala jayega.

  • @kmr.hacker983
    @kmr.hacker983 Рік тому

    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

  • @abhishekchaudhari7315
    @abhishekchaudhari7315 9 місяців тому

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

  • @elyramzan
    @elyramzan 6 місяців тому

    goat for a reason♨

  • @sadanandsinghchauhan8811
    @sadanandsinghchauhan8811 Рік тому

    op tutorial

  • @pinkunishad2211
    @pinkunishad2211 2 місяці тому

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

  • @devtomar8472
    @devtomar8472 6 місяців тому

    ❤❤ se Thank you for 59

  • @SHERSHAAH555
    @SHERSHAAH555 Рік тому

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

  • @utkarshbadoni9297
    @utkarshbadoni9297 Рік тому +3

    Include advance JavaScript like spread,rest,destructure operator

  • @patelronak153
    @patelronak153 Рік тому

    Nice🚀🚀😍

  • @adityakanade7165
    @adityakanade7165 Рік тому +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.

  • @samialvi4226
    @samialvi4226 Рік тому +1

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

  • @Swabhimanc
    @Swabhimanc 25 днів тому

    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

  • @sonuquraishi8244
    @sonuquraishi8244 Рік тому

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

  • @darksideishere
    @darksideishere Рік тому

    Are we basically blocking the main thread in async with 'await'? making it sync again?

  • @alpanakushwaha9109
    @alpanakushwaha9109 Рік тому +1

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

  • @RohanDasRD
    @RohanDasRD Рік тому

    Nice

  • @adkathait7569
    @adkathait7569 Рік тому

    Q&A banado harry bhai

  • @samialvi4226
    @samialvi4226 Рік тому

    harry bhai banglore ka weather agle 5 sec me nahi fetch hua balke 3 me hi hua.jis ka mtlb ka bs asynchrounously hi work ker rha tha await to kiya nahi banglore na pehle delhi ka
    im confused... pls clear it

  • @kuldeepsikarwar85
    @kuldeepsikarwar85 10 місяців тому

    4 bar video dekhi fir aaya asli maja sach me me
    Bahut shandar

  • @samarjeetsingh1710
    @samarjeetsingh1710 5 місяців тому

    harry sir if i click on the promise{pending} after the completion of delhiweather then it shows pending and even after the completion of bangloreweather the state remains pending until i referesh the page again and wait for bangloreweather to complete until i click on promise{pending}
    PLEASE SHOW SOME SOLUTION

  • @Demon-Senpai
    @Demon-Senpai Рік тому

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

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

  • @oook3407
    @oook3407 Рік тому +1

    me nay same code likha ha palit me but yaha error a raha ha waja?

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

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

  • @aesthic_.
    @aesthic_. 8 місяців тому

    Harry I have a problem In my replit I am not able to define prompt function ...It IS SHOWING prompt cannot be defined in replit... so I use const!!!

  • @samialvi4226
    @samialvi4226 Рік тому

    Harry bahi nodejs and express plssssssss love yaaa

  • @sudhanshukumar4380
    @sudhanshukumar4380 Рік тому

    make a series on how to make websites using python

  • @cryptowithfaizan8649
    @cryptowithfaizan8649 Рік тому +1

    Harry Bhai please next course full nodejs

  • @RockstarGamer4531
    @RockstarGamer4531 Рік тому

    Harry Bhai please kal ek api vs rest api vs restful api pe video daal do atleast shorts toh daal do, parso interview hai...

  • @Android-17
    @Android-17 8 місяців тому

    Async🔥

  • @raghavsood28
    @raghavsood28 Рік тому

    Make a course like this for C#

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

  • @adityakanade7165
    @adityakanade7165 Рік тому

    Pyarr to hogaya hai already Javascript se😁

  • @deepanshusaxena7471
    @deepanshusaxena7471 Рік тому

    jab async function ke under hum promises ke under setTimeout ko same time derahe hai like dono ko 2000 and await krke check kr rhe hai to saare promises ek sath implement horahe hai 2 seconds ke baad,wait nahi kiya jaraha each promises ke liye.Can anyone help me for this?