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 😉😉
Harry bhai you are not a programmer....you are a library of all programming languages .
Thank you for all the lessons you provide us.
Really , Harry bhai is genius 🙏🙏🙏🙏
@@CodeWithAryan_ Yes you are right.
If you plan on making a NODE JS course, you'll be my hero!!
Agree 💯
@@shivampandey3897 thanks but i don't have laptop
And node isn't working on phone 😭
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.
He is still a hero!! buddy.
101 like :)
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.
YES
This is really one of the best JavaScript course...Thank you so much Sir ❤️❤️
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.
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.
Harry Bhai Pahli Baar Itne Acche Async/Await Clear Hua Hai....... Wow For me its a magic
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 😊❣
maza aara hai harry sir , i cant beleive you made me fall in love with javascript than any other language
Harry bhai , You are awesome bro ! The way you explain things in a very simple manner is really an art .
I love the way of your explanation. Harry bhai samjaye or samaj n aye... not possible.
Thanks a lot bro.!
harry bhai maja aa gaya....async await is just 🧨🔥
This javascript playlist is Really Awesome !😍😍😍😍😍
maja aa gaya harry bhai async await padh ke....it is like controlling RAM memory in actual sense
finally I cleared this concept thanks Harry bhai
Thank you sir for creating this video!
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
well explained, Thank you Harry bhai😄
Harry bhae such a great teacher and a great teacher can change real world
Explained perfectly Harry bhai 👌👌👌
Great explaination. Thanks Harry and cherry also
this was very helpful! thanks bhai!
harry bhai buhat allaaw.
love from Pakistan.
aj sahi say async / await samjh aya.
Maza aagaya bhai saab. Thank you from bottom of my heart. Love and support. Always.
this video is very helpful for my thanks brother
I watch this video 2 times and now I understand clearly
Harry knows the student's nerves! Love the way he is giving back to the community.
Loads of Love from Pakistan. ❣
Amazing Tutuorial Sir.
Thanks for this!
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.
big fan sir love you harry bhaiya i am watching your videos since 3 year love you
Thank you Harry Bhai
you know how to deliver great Mentor and teacher
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
asleel hai ye launda.😲😲😲😲
Thankyou harry bhai❤
nice sir
thank you harry bhai
Thank you harry bhai
maza aa gaya...
bhai u r amazing seriously
Great video 👍
Thnxs for everything
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)
kon h bhai wo ldka?
@@youknowme3368 are bhai 14 saal ka nai hai wo ,and wo harry se nai padhai bhut dumb hai log,still harry thanks
Harry bhai superb 👌
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
you are great sir
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.....
Well explained.
Sir you are very amazing teacher and youtuber ❤❤❤❤❤❤❤❤
The JS series is going great #HarryBhai
very nice explanation sir maza aa gaya
awesome awesome awesome...............
Very Nice Tut🔥🔥
Bahot sahi
You are awesome 😎
best course ever
If I want to give a then() to "a" after that await, how would I give it?
amazing video
excellent
good one
Sir plz make kivy tutorials....I have searched on youtube but didn't find any tutorial in which everything is explained clearly
Everyone appreciating Sandeep Maheshwari. I bow down to you Bhai ⭐🎈
Thanks
Harry bhai nodeJs ka bhi course banao yrr. We need it 😃😃
Well and Good
projects shuru hote hi pyaar badhta chala jayega.
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
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!!!🙏🙏🫡🫡
Sahi hai
goat for a reason♨
op tutorial
harry bhai aapke padhane ke tarike se pyar ho gya hai sirf javascipt hi nhi aap jo bhi chij padhayenge usse pyar ho jayega
❤❤ se Thank you for 59
to at the end harry bhai ye batayiye ki .then jayda use krna chahiye ya async and await
Include advance JavaScript like spread,rest,destructure operator
Nice🚀🚀😍
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.
what is mern stack development?
1 bar aur dekhne me koi burai nahi ha
me to 5 bar dekh rha hoo
but still fun and informative
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
Harry Bhai Mai Aapka ye playlist Ka last video hi dkh rha tha Tu Aapne upload Kiya video
Are we basically blocking the main thread in async with 'await'? making it sync again?
An Async function always returns an Awaited Promise. Other values are wrapped in a promise automatically
Nice
Q&A banado harry bhai
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
4 bar video dekhi fir aaya asli maja sach me me
Bahut shandar
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
Harry bahai plz java in one video PLZ PLZ
Ur courses are very helpfull
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 :)
me nay same code likha ha palit me but yaha error a raha ha waja?
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.
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.
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!!!
Harry bahi nodejs and express plssssssss love yaaa
make a series on how to make websites using python
Harry Bhai please next course full nodejs
Harry Bhai please kal ek api vs rest api vs restful api pe video daal do atleast shorts toh daal do, parso interview hai...
Async🔥
Make a course like this for C#
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 !
Pyarr to hogaya hai already Javascript se😁
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?