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.
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)
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
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.
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.
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
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
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 :)
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
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!!!🙏🙏🫡🫡
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 😊❣
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.
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.
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.
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
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
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 !
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.
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 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.
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 ❤️❤️❤️❤️😭😭😭
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 Pahli Baar Itne Acche Async/Await Clear Hua Hai....... Wow For me its a magic
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
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 knows the student's nerves! Love the way he is giving back to the community.
Loads of Love from Pakistan. ❣
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.
This is really one of the best JavaScript course...Thank you so much 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.....
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
Ye prob mujhe bhi thi
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.
This javascript playlist is Really Awesome !😍😍😍😍😍
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.
maza aara hai harry sir , i cant beleive you made me fall in love with javascript than any other language
Everyone appreciating Sandeep Maheshwari. I bow down to you Bhai ⭐🎈
harry bhai maja aa gaya....async await is just 🧨🔥
I love the way of your explanation. Harry bhai samjaye or samaj n aye... not possible.
Thanks a lot bro.!
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
I watch this video 2 times and now I understand clearly
Sir you are very amazing teacher and youtuber ❤❤❤❤❤❤❤❤
harry bhai is programming library 😍🥰
Thank you Harry Sir Apne bohot accha samjaya . You are great tech guy
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
Thanks Bro
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 :)
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
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.😲😲😲😲
Harry bhae such a great teacher and a great teacher can change real world
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.
big fan sir love you harry bhaiya i am watching your videos since 3 year love you
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
finally I cleared this concept thanks Harry bhai
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 😊❣
you know how to deliver great Mentor and teacher
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.
1 bar aur dekhne me koi burai nahi ha
me to 5 bar dekh rha hoo
but still fun and informative
I want real world example with the specific project..
bhai u r amazing seriously
harry bhai aapke padhane ke tarike se pyar ho gya hai sirf javascipt hi nhi aap jo bhi chij padhayenge usse pyar ho jayega
maja aa gaya harry bhai async await padh ke....it is like controlling RAM memory in actual sense
well explained, Thank you Harry bhai😄
Day59#100DaysOfCode with CCODEWITHHARRY,
JavaScript,
today i learned about await and async function in JavaScript.
nice sir
thank you harry bhai
to at the end harry bhai ye batayiye ki .then jayda use krna chahiye ya async and await
Harry bhai nodeJs ka bhi course banao yrr. We need it 😃😃
Great explaination. Thanks Harry and cherry also
The JS series is going great #HarryBhai
You are awesome 😎
awesome awesome awesome...............
Explained perfectly Harry bhai 👌👌👌
you are great sir
best course ever
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
Very Nice Tut🔥🔥
Brother u r inspiration for us, plz 🙏go on sandeep maheshwari show
Sir plz make kivy tutorials....I have searched on youtube but didn't find any tutorial in which everything is explained clearly
this video is very helpful for my thanks brother
this was very helpful! thanks bhai!
An Async function always returns an Awaited Promise. Other values are wrapped in a promise automatically
❤❤ se Thank you for 59
projects shuru hote hi pyaar badhta chala jayega.
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.
Include advance JavaScript like spread,rest,destructure operator
goat for a reason♨
Thank you Harry Bhai
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.
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
Thankyou harry bhai❤
Harry bhai superb 👌
Amazing Tutuorial Sir.
Harry bhai , You are awesome bro ! The way you explain things in a very simple manner is really an art .
Thank you sir for creating this video!
1:49 who or what is on your right side
🤔
Question - JavaScript is a Single threaded language, then how multiple async. functions can run parallelly. ??
Great video 👍
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
Well explained.
very nice explanation sir maza aa gaya
Harry Bhai please next course full nodejs
Thnxs for everything
Harry bahai plz java in one video PLZ PLZ
Ur courses are very helpfull
Q&A banado harry bhai
amazing video
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 !
good one
Bahot sahi
excellent
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?
Harry Bhai Mai Aapka ye playlist Ka last video hi dkh rha tha Tu Aapne upload Kiya video
Pyarr to hogaya hai already Javascript se😁
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.
make a series on how to make websites using python
Well and Good
Thanks for this!
If I want to give a then() to "a" after that await, how would I give it?
maza aa gaya...
Harry bahi nodejs and express plssssssss love yaaa
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.
await matlab
ruko zara sabar karo
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 ❤️❤️❤️❤️😭😭😭
What are you talking about? is it really true!?🧐🧐😭😭
@@imtiyazahmedkhan9597 may be happen because PW now starting coding course for students so... . Also Harry bro no 1 teacher in India
@@sunitamohapatra653 As long as Harry sir doesn't say it himself, we have nothing to worry about 👍👍
grasped!
Thanks