jab jab dar lgta h na samaj aane ka, and when harry bhai ensures us that "Thoda mera saath de do samaj mein bilkul aayega" He just kills our fear and boosts self confidence Love you Harry
@banojkumarmishra6687 Жыл бұрын
The way he conquers every language is just phenomenal. Even programming languages are now scared of Harry bhai The God of code🎉
@BruceLee-bt2mq Жыл бұрын
In simple words: Promise cosists of two functions, and it returns one of the function's output(either resolve or reject). If it is resolve function then we use Promise.then to output it, if it is reject function then we use Promise.catch to output it. This is what I understood, if it is wrong please let me know, I will learn.
@aakarshansubedi1743 ай бұрын
you're absolutely correct
@vortexdeo4545 Жыл бұрын
Kudos to editor for taking this seriously and not inserting memes in between explanation
@riteshkatare1433 Жыл бұрын
ha bhai
@UnitedIndia397 Жыл бұрын
correct
@sanskarmalviya3493 Жыл бұрын
Actually memes were good😂
@SaadCodes6 ай бұрын
00:03 Learn how to perform tasks after a promise is fulfilled using .then() and .catch() methods 02:14 promise.state explained 04:10 A promise can be fulfilled or rejected 06:06 Promises in JavaScript allow for parallel execution and handling of resolved and rejected promises. 08:12 Using .then() and .catch() methods in JavaScript promises 10:00 Understanding Promise .then() and .catch() in JavaScript 12:10 To handle errors in promises, use .catch() or provide null as the first argument in .then() 14:56 Catch errors to handle potential issues in the code
Const books=new Promise((resolve,reject)=>{ Const available=false If(available){ resolve("book is available") } else{ reject ("book is not available") } }); books .then((data)=>{ console.log("congratulations,data) }) .catch((data)=>{ console.log("sorry,data") }) . finally (()=>{ console.log("thank you visit again") })
@AnwarAmazai2 жыл бұрын
Love you harry sir , Apni jindagi main ap jaisa teacher nahi dekha ❤️ Thank
@ashutoshmishra18602 жыл бұрын
Jo nasha hrry bhai ki video me h voo kahii nhii☺️ I m a true fan of hrry bhaii
@sufyanbaig82692 жыл бұрын
You are doing a wonderful job! People like you are helping others to achieve their dreams. A million thanks to you May Allah bless you
@nidhishsrivastava48682 жыл бұрын
allah ki maa ki c@ut mein brahmos
@Saniyakhan07292 жыл бұрын
Harry bhai God bless and you have been helpful for me❣️
@Let-s_Entertain.... Жыл бұрын
Thank you So Much Harry Bhai, coz of you I got a job with 9 LPA . again Thank you so much HARRY sir Hats off
@akmachinetools1machine306 Жыл бұрын
How man? Can you tell me the roadMap that you followed.
@prernajha45292 жыл бұрын
hi sir, I just came across your videos today and I must say I am so grateful that you are teaching us. Just a small request - Could you please make a playlist on SQL as well?
@SiddharthSingh-up2gs2 жыл бұрын
no
@amt.7rambo6702 жыл бұрын
yeah bro SQL
@adityakanade71652 жыл бұрын
i Love Promise ,this is very interesting topic😍
@BaapDeveloper2 жыл бұрын
Keep Reading Keep Learning Keep Growing harry bhaiya best 💗
@SubhanKhanPathaNN5 ай бұрын
To Better Understand: let p3 = new Promise((resolve,reject)=>{ setTimeout(() => { let data = {Server: BigInt("67586387635873648"), Ping: BigInt("67586387635873648")} if(data.Server === data.Ping){ resolve(data) }else{ reject(new Error('Server is not same as ping!')) } }, 5000); }) p3.then((X)=>{ console.log(X) },(Y)=>{ console.log(Y) })
@millionviews64272 жыл бұрын
Great Video harry bhai ... Bohot achhe teacher ho ap Happy Teachers Day to you
@samialvi4226 Жыл бұрын
Harry sir is one of a kind💞
@sonalidhar4347 Жыл бұрын
Thank you for sharing such a precious knowledge with us..❤
@ishitachakraborty7990 Жыл бұрын
This was such a great help for me , after years of going through monotonous definitions , i finally understood ...Thank you sir !
@itz_me_imraan022 жыл бұрын
Thnx for making it crystal clear ♥
@maaa33472 жыл бұрын
Thanks you so much sir 🌹🌹.Happy birthday harry sir .Love you from heart
@maaa33472 жыл бұрын
@aloksolanki54859 ай бұрын
My Zomato order got cancelled as i was watching this video 😂
@nihalwaseem71067 ай бұрын
Promise got rejected , need another promise to get Zomato order 😂
@RaviKumar-f1v5x4 ай бұрын
Promise value was rejected but state was fulfilled.
@dharampreetsingh90992 ай бұрын
And my parcel from meesho that I was waiting from last 5 days is cancelled right at the moment 😂
@santoshkharel10832 жыл бұрын
HARRY BHAI JINDABAAD 😍
@akhilesh-kamat2 жыл бұрын
A Promise is in one of these states: pending: initial state, neither fulfilled nor rejected. fulfilled: meaning that the operation was completed successfully. rejected: meaning that the operation failed.
@adibpathan41833 Жыл бұрын
harry bhai your teaching is very well but when you teach any topic then you can also teach us when we use promise and where we use also 😇
@rigotomy71292 жыл бұрын
Bro can u make a series on how to make the next js - ecommerce site secure and what security measures can we take at d time of building next js website..this can be an extension of ur next js tutorial. Also if possible then after this can u start web 3 coding tutorial. Thanks bro Ur tutorial helps us understand the concept easily spl for people like me who are not from programming background.
@MehtabButt-q2f Жыл бұрын
alo paratha, 😆 you have such an amazing way of teaching.
@Aniket-ik3uj Жыл бұрын
next level typing sound...🤩
@nabarkaroy33972 ай бұрын
Thanks a lot sir, abh concept clear 😀
@Ayush77-04 Жыл бұрын
Jisko samajh nahi aaya bo focus hoke with practice baar baar dekho ho jaayega but don't give up
@muneebali98112 жыл бұрын
i can not wait for more videos.. Waiting
@ahmedshah24412 жыл бұрын
Sir Harry! Please make an Game development roadmap. With frontend and backend.
@itz_me_imraan022 жыл бұрын
Add one or two advance projects too 💚
@lakshsinghania Жыл бұрын
do u know any beginner projects where we use this promises concept in depth to understand clearly the real meaning of promises?
@itsaayush73579 ай бұрын
You can make a simple weather application by using just promises. In which u fetch weather data from api and display it to user
@nitinmandale76962 жыл бұрын
I just wanna give a suggestion that you should add the content of the tutorial before hand soo that we can see what topics you are going to cover and what you gonna cover next... i want to know what things you are going to cover next soo please drop a text file of the content page
@Lv_La_Lr3 күн бұрын
I love you Harry Sensei ❤❤
@DecodeReels2 жыл бұрын
Bhai star my journey today 😊
@rupendraediting2 жыл бұрын
Nice Harry bhai🔥❤️❤️
@arshad72432 жыл бұрын
Harry bhai ek question paper bnakr dedo jo bhi aapne abhi tak krwaya h plz jisse hme pta chal ske ki ham kitne paani m h😀🥰
@Android-17 Жыл бұрын
then & catch🤯 #JavaScript
@nikhil_742 жыл бұрын
Your videos are really helpful for me
@BantyPatro2 жыл бұрын
Good evening Harry bhai. ♥️♥️♥️
@samirrobin35242 жыл бұрын
Thank you so much Sir for this amazing content ❤️❤️❤️❤️
@devtomar847210 ай бұрын
❤❤ se Thank you for 55
@technikalproblem6780 Жыл бұрын
Thank you sir for creating this video!
@riteshkatare1433 Жыл бұрын
akki
@feels_alive Жыл бұрын
setTimeout used by harry is use to increase the youtube video length by 5 sec 😜
@herainpratapsingh1972 Жыл бұрын
kudos for the efforts you put in
@malikfahad007-l3p2 ай бұрын
kia baat ha harry bhai ap demotivate nai hony dety
@xecor4450 Жыл бұрын
Bhai please jb record krte to filter lgana(compressor) please to suppress the peaking.. kyi bar kaan mein chubti awaaz.
@Lv_La_Lr3 күн бұрын
Harry Sensei OP ❤❤
@nk-rb1dn2 жыл бұрын
Happy teacher day 💕💕❤️❤️
@khybersial61712 жыл бұрын
love and regards from Afghanistan
@Shoaib_Khan9272 Жыл бұрын
Luckily ...I already have write Loadscript for practicing 😅 even before you asked for
@hamudkhan8696 ай бұрын
TOP CLASS
@priyanshutyagi_020019 ай бұрын
Thankyou harry bhai❤
@MidnightToons2 жыл бұрын
Harry sir 1 he video me 6 bar add a gye pareshan ho gye, please solve the issue!
@mirishfaqhussain6168 Жыл бұрын
Wow awsome sir
@Nipun_Mudgal Жыл бұрын
King 👑👑
@tejaswavhal26262 жыл бұрын
Nicely explained 😊
@gaurimandot5788 Жыл бұрын
Sirf catch method "uncaught error " deta hai HARRY BHAI .
@ManjotSingh-sf5qn Жыл бұрын
Arrey 2-3 baar videos dekhi pad rahi ha iss chapter ki 🤌😂
@subratasadhukhan2161 Жыл бұрын
मज़ा आ रहा है
@rajgaming67335 ай бұрын
Itni achi explanation aapne sigma course mei nhi di toh yaha se smjh rha hu😢
@babaop70665 ай бұрын
Sigma code kis liye ha?plz bata do
@rajgaming67332 ай бұрын
@@babaop7066 full stack web development ke liye
@lubnakhan265710 ай бұрын
So hard Harry BHI
@Avert-Technology.2 жыл бұрын
sir aapne achha kiya
@adityanair10012 жыл бұрын
Thanks Harry bhai ❤️
@rahul4142 Жыл бұрын
The GOAT .
@adkathait75692 жыл бұрын
Q&A plz
@itxsaadgaming7902 Жыл бұрын
@amt.7rambo6702 жыл бұрын
HARRY BHAI ONLY MISSING PLAYLIST ON YOUR CHANNEL IS MYSQL PLS MAKE A COURSE FOR IT
@AnilYadav-qn3ch2 жыл бұрын
// confirm has taken for only task example. let p1 = new Promise((resolve, reject) => { let check = confirm("do you want to confirm"); setTimeout(() => { if (check) { resolve(); } else { reject(new Error("some error")); } }, 4000); }); p1.then(() => { document.write("your task has sucesfully completed"); }).catch((error) => { document.write("facing some problem"); }); harry bhai check this
@vortexdeo4545 Жыл бұрын
Yahaan resolve aur reject promise ke andar manually likhe rhe hein, aur then aur catch bhi, but ye resolve hua toh then karen aur reject hua toh catch karen ye kaese decide hoga. Would it be then ke aage catch or what
@clashingtv2527 Жыл бұрын
It's very similar to try expect and finally in python or say error handling
@SSaurabh2013 Жыл бұрын
harry bhai!!!!!!! Please make videos on salesforce too
@dksingh97712 жыл бұрын
thank you harry bhai
@jaydipbhutaiya2 жыл бұрын
Its looklike threading and try catxh block of java...
@sahilarora6768 Жыл бұрын
Bhaiya yr aap ne jaise ye javascript ki series alag alag krkr video banaya hai waise hi react.js ki bhi banana
@jetsetsidd23692 жыл бұрын
Thanks Harry bhai...ap please notes update Kar do gdrive mein..🙏
@abdullahfrontend2 жыл бұрын
Sir, You should make a Video on Creating you own css Framework
@vansh11902 жыл бұрын
Day 55 #100DaysOfCode with CODEWITHHARRY, JavaScript, today we learn more about promises, .then() and .catch() the fact is that mine CodeFormatter is also not working HARRYBHAI😅😅
@munny90 Жыл бұрын
that line "aapke padosi ne nhi baniye mere tauji ne nahi baniye" . harry bhai dil jeet leya apne😄😄
@anju73342 жыл бұрын
Brother please make videos on maths also.
@AdnanAnsari-h6i2 ай бұрын
Nice
@yogitamodi Жыл бұрын
how we will know that where to use resolve and where to use reject , and if we are using (reject callback function) then why we are performing that task in promise. and if we are using (resolve callback function) then, do we have to use both then and catch method
@ganeshparjapt17312 жыл бұрын
thanks harry bhaii
@bagar_jelly_halqa2 жыл бұрын
Harry bhai... Waiting for the tutorail of linux
@HarshSri_2001 Жыл бұрын
allo parntha bhok lg gyi harry bhai...😅
@oqant04242 жыл бұрын
lecture 55 done (15.11.22)
@codingwithsatyam2 жыл бұрын
Best video
@akshatchauhan60562 жыл бұрын
i have a doubt : how js can execute two promise in parallel if it does not support multithreading ?
@umarjanbhat38192 жыл бұрын
it uses web workers.
@shivamkumar-m8o6c Жыл бұрын
reject ka matlab mujhse behtar kon jaan sakta hai🥲🥲
@undefinedgamer15372 жыл бұрын
just like multithreading in python
@NipunRawat089 ай бұрын
what is ".then" used for.. uske bina bhi to result sahi araha tha!
@s_ridey_00012 жыл бұрын
Tnx sir
@adityapundir65292 жыл бұрын
Bro, you said that you'll make a video on the submissions of Windows 11 UI made in HTML in your video. Please consider it.
@parasarya722 жыл бұрын
Pehle se h bhai, check kro
@pankajsuryavanshi83322 жыл бұрын
Start Redux series..
@ramjimishra5511 Жыл бұрын
I love❤ you sir🥰😍
@aliamir24732 жыл бұрын
Plz make typescript course
@-KundanYadav2 жыл бұрын
👍👍👍👍
@vortexdeo4545 Жыл бұрын
15:11 ye toh error handing without catch inside then itself, wo bhi wthout then me first argument null diye hue Ye sab Projects ke api end points aur DB query me bahot use karte hein but wahaan samjh nhi ata