"Anurag sir, thank you so much for providing such an amazing JavaScript playlist absolutely free! 🙏 Your explanations are clear, easy to follow, and perfect for beginners and advanced users. Such a playlist." this is a gold mine for anyone seriously familiar with JavaScript, and you." these ideas for everyone.” I truly appreciate the effort to simplify, you help so many of us grow as developers, and your dedication is inspiring.
00:01 Learn how to create promises in JavaScript 02:35 Understanding errors and callbacks in Promise constructor 08:26 Promises can be resolved even after some time 12:58 Handling promise rejection and resolution 18:03 Promises in JavaScript are native code provided by the browser 20:26 Understanding the final promise and its state changes in JavaScript 28:00 Understanding the execution of call back functions and the event loop 30:19 Understanding the order of completion of promises and timeout functions 36:25 Promises in JavaScript are objects that represent the eventual completion or failure of an asynchronous operation. 38:56 Understanding microtasks and event loop priority 45:17 Using promises for error handling
Sir Q1 kya sirf .then() he micro task mai jata hai .catch() nahi. Q2 agar .then() na use kare sirf promise mai he resolve ker de to phele set timeout run hoga ya promise ya sirf set timeout run hoga promise nahi kyuki .then() nahi use kiya hai
q1. dono .then() or .catch () micrque mai jaate hai depend krta hai pehle kon run ho rha reject ya resolve resolve hoga to reject run nhi hoga q2 nhi phle priority promise ki hi rhegi
Try it & you will get your answer setTimeout(function(){ console.log("Set Timeout called"); }) const pr = new Promise((resolve,reject) => { reject("Promise Rejected"); }) pr .then((message) => console.log(message)) .catch(error => console.log(error));
the way you explain each topic is wow
"Anurag sir, thank you so much for providing such an amazing JavaScript playlist absolutely free! 🙏 Your explanations are clear, easy to follow, and perfect for beginners and advanced users. Such a playlist." this is a gold mine for anyone seriously familiar with JavaScript, and you." these ideas for everyone.” I truly appreciate the effort to simplify, you help so many of us grow as developers, and your dedication is inspiring.
Thank you so much. Keep learning and growing 😊
Bhai kitni bhi badi video rakho aap leken har point unique and knowledgable hi hota hai, so aise hi badi video banaya karoo sir
Main chhoti videos mein padha hi nahi pata hoon 😀
Content in detail me bahot achha hai, lekin thoda video ka length Kam karne ka try Karo, aur dekho viewers and subscriber's badh jayenge
@@procodrr Choti Videos Se Samjh Ke bhul Jata HUn
@@procodrr sir ap already bht acha prhaty hn.... Apko kisi suggestion ki zarurat nhi..... Keep it up.....
Bhi ap bht Knowledge rkte han javascript ki....
Bahut acche se samjhaye hain sir🔥
Thanks bro 😊
Best explanation because maine phale apna college se padha tha jada samjh nhi aaya too yeha pe aaya
Aj finally promise smjh agye!
PROMISE IS ONE TYPE OF OBJECT
00:01 Learn how to create promises in JavaScript
02:35 Understanding errors and callbacks in Promise constructor
08:26 Promises can be resolved even after some time
12:58 Handling promise rejection and resolution
18:03 Promises in JavaScript are native code provided by the browser
20:26 Understanding the final promise and its state changes in JavaScript
28:00 Understanding the execution of call back functions and the event loop
30:19 Understanding the order of completion of promises and timeout functions
36:25 Promises in JavaScript are objects that represent the eventual completion or failure of an asynchronous operation.
38:56 Understanding microtasks and event loop priority
45:17 Using promises for error handling
Great explanation!
Great Lecture Sir 😁
Thanks ❤️
Great explanation !!
Glad you liked it!
Keep Learning 😊
tysm sir jiiiiiiii🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱🐱
best Explaniation love from pakistan
If promises is pending then set timeout function will run or not
Try it, whichever will be resolved first that will run.
Sir, aap PHP bhi sikhaoge..?
No bro
Bhaiya aapne Promise.all() nahi padhaya wo bhi interview may kaafi poochte hai
Aage aane wale videos mein Countries wala ek project banwayenge usmein Promise.all() padhayenge
@@procodrr ok bhaiya thank u
This is helpful ❤
Thanks ❤
Sir nodejs ke liye javascript ke konse topic jyada important ha?
Is playlist mein jitne bhi topics hain wo sab important hai.
❤❤
sir microtask queue and callback queue dono ko event loop hi monitor karta hai for send in call stack
Yes
Sir
Q1 kya sirf .then() he micro task mai jata hai .catch() nahi.
Q2 agar .then() na use kare sirf promise mai he resolve ker de to phele set timeout run hoga ya promise ya sirf set timeout run hoga promise nahi kyuki .then() nahi use kiya hai
q1. dono .then() or .catch () micrque mai jaate hai depend krta hai pehle kon run ho rha reject ya resolve resolve hoga to reject run nhi hoga
q2 nhi phle priority promise ki hi rhegi
Try it & you will get your answer
setTimeout(function(){
console.log("Set Timeout called");
})
const pr = new Promise((resolve,reject) => {
reject("Promise Rejected");
})
pr
.then((message) => console.log(message))
.catch(error => console.log(error));
Micro task queue wale neta hai sabhi 😂 or call back queue wale public hai or public line laga ke khadi hai 😅
Ekdum sahi example hai 😁😂
Anurag bhai, tum har video bahot jyada lengthy banate ho, jitna hosake utna, videos ki length kam kiya karo
Arrey Bhai length jyada ha par deeply bhi to smjha rahe ha
Learning video hai tumhare Instagram ki reels nhi