Promise .then() and .catch() | JavaScript Tutorial in Hindi #55

  Рет қаралды 238,672

CodeWithHarry

CodeWithHarry

Күн бұрын

Пікірлер: 214
@swayampattanaik1522
@swayampattanaik1522 2 жыл бұрын
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
@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
@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.
@aakarshansubedi174
@aakarshansubedi174 3 ай бұрын
you're absolutely correct
@vortexdeo4545
@vortexdeo4545 Жыл бұрын
Kudos to editor for taking this seriously and not inserting memes in between explanation
@riteshkatare1433
@riteshkatare1433 Жыл бұрын
ha bhai
@UnitedIndia397
@UnitedIndia397 Жыл бұрын
correct
@sanskarmalviya3493
@sanskarmalviya3493 Жыл бұрын
Actually memes were good😂
@SaadCodes
@SaadCodes 6 ай бұрын
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
@technubie
@technubie 2 жыл бұрын
2 baar video dekhi, tab jake thora bhut concept clear hua
@ganeshkirtane5998
@ganeshkirtane5998 3 ай бұрын
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") })
@AnwarAmazai
@AnwarAmazai 2 жыл бұрын
Love you harry sir , Apni jindagi main ap jaisa teacher nahi dekha ❤️ Thank
@ashutoshmishra1860
@ashutoshmishra1860 2 жыл бұрын
Jo nasha hrry bhai ki video me h voo kahii nhii☺️ I m a true fan of hrry bhaii
@sufyanbaig8269
@sufyanbaig8269 2 жыл бұрын
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
@nidhishsrivastava4868
@nidhishsrivastava4868 2 жыл бұрын
allah ki maa ki c@ut mein brahmos
@Saniyakhan0729
@Saniyakhan0729 2 жыл бұрын
Harry bhai God bless and you have been helpful for me❣️
@Let-s_Entertain....
@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
@akmachinetools1machine306 Жыл бұрын
How man? Can you tell me the roadMap that you followed.
@prernajha4529
@prernajha4529 2 жыл бұрын
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-up2gs
@SiddharthSingh-up2gs 2 жыл бұрын
no
@amt.7rambo670
@amt.7rambo670 2 жыл бұрын
yeah bro SQL
@adityakanade7165
@adityakanade7165 2 жыл бұрын
i Love Promise ,this is very interesting topic😍
@BaapDeveloper
@BaapDeveloper 2 жыл бұрын
Keep Reading Keep Learning Keep Growing harry bhaiya best 💗
@SubhanKhanPathaNN
@SubhanKhanPathaNN 5 ай бұрын
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) })
@millionviews6427
@millionviews6427 2 жыл бұрын
Great Video harry bhai ... Bohot achhe teacher ho ap Happy Teachers Day to you
@samialvi4226
@samialvi4226 Жыл бұрын
Harry sir is one of a kind💞
@sonalidhar4347
@sonalidhar4347 Жыл бұрын
Thank you for sharing such a precious knowledge with us..❤
@ishitachakraborty7990
@ishitachakraborty7990 Жыл бұрын
This was such a great help for me , after years of going through monotonous definitions , i finally understood ...Thank you sir !
@itz_me_imraan02
@itz_me_imraan02 2 жыл бұрын
Thnx for making it crystal clear ♥
@maaa3347
@maaa3347 2 жыл бұрын
Thanks you so much sir 🌹🌹.Happy birthday harry sir .Love you from heart
@maaa3347
@maaa3347 2 жыл бұрын
@aloksolanki5485
@aloksolanki5485 9 ай бұрын
My Zomato order got cancelled as i was watching this video 😂
@nihalwaseem7106
@nihalwaseem7106 7 ай бұрын
Promise got rejected , need another promise to get Zomato order 😂
@RaviKumar-f1v5x
@RaviKumar-f1v5x 4 ай бұрын
Promise value was rejected but state was fulfilled.
@dharampreetsingh9099
@dharampreetsingh9099 2 ай бұрын
And my parcel from meesho that I was waiting from last 5 days is cancelled right at the moment 😂
@santoshkharel1083
@santoshkharel1083 2 жыл бұрын
HARRY BHAI JINDABAAD 😍
@akhilesh-kamat
@akhilesh-kamat 2 жыл бұрын
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
@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 😇
@rigotomy7129
@rigotomy7129 2 жыл бұрын
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
@MehtabButt-q2f Жыл бұрын
alo paratha, 😆 you have such an amazing way of teaching.
@Aniket-ik3uj
@Aniket-ik3uj Жыл бұрын
next level typing sound...🤩
@nabarkaroy3397
@nabarkaroy3397 2 ай бұрын
Thanks a lot sir, abh concept clear 😀
@Ayush77-04
@Ayush77-04 Жыл бұрын
Jisko samajh nahi aaya bo focus hoke with practice baar baar dekho ho jaayega but don't give up
@muneebali9811
@muneebali9811 2 жыл бұрын
i can not wait for more videos.. Waiting
@ahmedshah2441
@ahmedshah2441 2 жыл бұрын
Sir Harry! Please make an Game development roadmap. With frontend and backend.
@itz_me_imraan02
@itz_me_imraan02 2 жыл бұрын
Add one or two advance projects too 💚
@lakshsinghania
@lakshsinghania Жыл бұрын
do u know any beginner projects where we use this promises concept in depth to understand clearly the real meaning of promises?
@itsaayush7357
@itsaayush7357 9 ай бұрын
You can make a simple weather application by using just promises. In which u fetch weather data from api and display it to user
@nitinmandale7696
@nitinmandale7696 2 жыл бұрын
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_Lr
@Lv_La_Lr 3 күн бұрын
I love you Harry Sensei ❤❤
@DecodeReels
@DecodeReels 2 жыл бұрын
Bhai star my journey today 😊
@rupendraediting
@rupendraediting 2 жыл бұрын
Nice Harry bhai🔥❤️❤️
@arshad7243
@arshad7243 2 жыл бұрын
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
@Android-17 Жыл бұрын
then & catch🤯 #JavaScript
@nikhil_74
@nikhil_74 2 жыл бұрын
Your videos are really helpful for me
@BantyPatro
@BantyPatro 2 жыл бұрын
Good evening Harry bhai. ♥️♥️♥️
@samirrobin3524
@samirrobin3524 2 жыл бұрын
Thank you so much Sir for this amazing content ❤️❤️❤️❤️
@devtomar8472
@devtomar8472 10 ай бұрын
❤❤ se Thank you for 55
@technikalproblem6780
@technikalproblem6780 Жыл бұрын
Thank you sir for creating this video!
@riteshkatare1433
@riteshkatare1433 Жыл бұрын
akki
@feels_alive
@feels_alive Жыл бұрын
setTimeout used by harry is use to increase the youtube video length by 5 sec 😜
@herainpratapsingh1972
@herainpratapsingh1972 Жыл бұрын
kudos for the efforts you put in
@malikfahad007-l3p
@malikfahad007-l3p 2 ай бұрын
kia baat ha harry bhai ap demotivate nai hony dety
@xecor4450
@xecor4450 Жыл бұрын
Bhai please jb record krte to filter lgana(compressor) please to suppress the peaking.. kyi bar kaan mein chubti awaaz.
@Lv_La_Lr
@Lv_La_Lr 3 күн бұрын
Harry Sensei OP ❤❤
@nk-rb1dn
@nk-rb1dn 2 жыл бұрын
Happy teacher day 💕💕❤️❤️
@khybersial6171
@khybersial6171 2 жыл бұрын
love and regards from Afghanistan
@Shoaib_Khan9272
@Shoaib_Khan9272 Жыл бұрын
Luckily ...I already have write Loadscript for practicing 😅 even before you asked for
@hamudkhan869
@hamudkhan869 6 ай бұрын
TOP CLASS
@priyanshutyagi_02001
@priyanshutyagi_02001 9 ай бұрын
Thankyou harry bhai❤
@MidnightToons
@MidnightToons 2 жыл бұрын
Harry sir 1 he video me 6 bar add a gye pareshan ho gye, please solve the issue!
@mirishfaqhussain6168
@mirishfaqhussain6168 Жыл бұрын
Wow awsome sir
@Nipun_Mudgal
@Nipun_Mudgal Жыл бұрын
King 👑👑
@tejaswavhal2626
@tejaswavhal2626 2 жыл бұрын
Nicely explained 😊
@gaurimandot5788
@gaurimandot5788 Жыл бұрын
Sirf catch method "uncaught error " deta hai HARRY BHAI .
@ManjotSingh-sf5qn
@ManjotSingh-sf5qn Жыл бұрын
Arrey 2-3 baar videos dekhi pad rahi ha iss chapter ki 🤌😂
@subratasadhukhan2161
@subratasadhukhan2161 Жыл бұрын
मज़ा आ रहा है
@rajgaming6733
@rajgaming6733 5 ай бұрын
Itni achi explanation aapne sigma course mei nhi di toh yaha se smjh rha hu😢
@babaop7066
@babaop7066 5 ай бұрын
Sigma code kis liye ha?plz bata do
@rajgaming6733
@rajgaming6733 2 ай бұрын
@@babaop7066 full stack web development ke liye
@lubnakhan2657
@lubnakhan2657 10 ай бұрын
So hard Harry BHI
@Avert-Technology.
@Avert-Technology. 2 жыл бұрын
sir aapne achha kiya
@adityanair1001
@adityanair1001 2 жыл бұрын
Thanks Harry bhai ❤️
@rahul4142
@rahul4142 Жыл бұрын
The GOAT .
@adkathait7569
@adkathait7569 2 жыл бұрын
Q&A plz
@itxsaadgaming7902
@itxsaadgaming7902 Жыл бұрын
@amt.7rambo670
@amt.7rambo670 2 жыл бұрын
HARRY BHAI ONLY MISSING PLAYLIST ON YOUR CHANNEL IS MYSQL PLS MAKE A COURSE FOR IT
@AnilYadav-qn3ch
@AnilYadav-qn3ch 2 жыл бұрын
// 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
@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
@clashingtv2527 Жыл бұрын
It's very similar to try expect and finally in python or say error handling
@SSaurabh2013
@SSaurabh2013 Жыл бұрын
harry bhai!!!!!!! Please make videos on salesforce too
@dksingh9771
@dksingh9771 2 жыл бұрын
thank you harry bhai
@jaydipbhutaiya
@jaydipbhutaiya 2 жыл бұрын
Its looklike threading and try catxh block of java...
@sahilarora6768
@sahilarora6768 Жыл бұрын
Bhaiya yr aap ne jaise ye javascript ki series alag alag krkr video banaya hai waise hi react.js ki bhi banana
@jetsetsidd2369
@jetsetsidd2369 2 жыл бұрын
Thanks Harry bhai...ap please notes update Kar do gdrive mein..🙏
@abdullahfrontend
@abdullahfrontend 2 жыл бұрын
Sir, You should make a Video on Creating you own css Framework
@vansh1190
@vansh1190 2 жыл бұрын
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
@munny90 Жыл бұрын
that line "aapke padosi ne nhi baniye mere tauji ne nahi baniye" . harry bhai dil jeet leya apne😄😄
@anju7334
@anju7334 2 жыл бұрын
Brother please make videos on maths also.
@AdnanAnsari-h6i
@AdnanAnsari-h6i 2 ай бұрын
Nice
@yogitamodi
@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
@ganeshparjapt1731
@ganeshparjapt1731 2 жыл бұрын
thanks harry bhaii
@bagar_jelly_halqa
@bagar_jelly_halqa 2 жыл бұрын
Harry bhai... Waiting for the tutorail of linux
@HarshSri_2001
@HarshSri_2001 Жыл бұрын
allo parntha bhok lg gyi harry bhai...😅
@oqant0424
@oqant0424 2 жыл бұрын
lecture 55 done (15.11.22)
@codingwithsatyam
@codingwithsatyam 2 жыл бұрын
Best video
@akshatchauhan6056
@akshatchauhan6056 2 жыл бұрын
i have a doubt : how js can execute two promise in parallel if it does not support multithreading ?
@umarjanbhat3819
@umarjanbhat3819 2 жыл бұрын
it uses web workers.
@shivamkumar-m8o6c
@shivamkumar-m8o6c Жыл бұрын
reject ka matlab mujhse behtar kon jaan sakta hai🥲🥲
@undefinedgamer1537
@undefinedgamer1537 2 жыл бұрын
just like multithreading in python
@NipunRawat08
@NipunRawat08 9 ай бұрын
what is ".then" used for.. uske bina bhi to result sahi araha tha!
@s_ridey_0001
@s_ridey_0001 2 жыл бұрын
Tnx sir
@adityapundir6529
@adityapundir6529 2 жыл бұрын
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.
@parasarya72
@parasarya72 2 жыл бұрын
Pehle se h bhai, check kro
@pankajsuryavanshi8332
@pankajsuryavanshi8332 2 жыл бұрын
Start Redux series..
@ramjimishra5511
@ramjimishra5511 Жыл бұрын
I love❤ you sir🥰😍
@aliamir2473
@aliamir2473 2 жыл бұрын
Plz make typescript course
@-KundanYadav
@-KundanYadav 2 жыл бұрын
👍👍👍👍
@vortexdeo4545
@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
Promise Chaining .then() calls | JavaScript Tutorial in Hindi #56
17:58
Async/Await in JavaScript | JavaScript Tutorial in Hindi #59
20:08
CodeWithHarry
Рет қаралды 300 М.
Players push long pins through a cardboard box attempting to pop the balloon!
00:31
Twin Telepathy Challenge!
00:23
Stokes Twins
Рет қаралды 114 МЛН
The Promise API | JavaScript Tutorial in Hindi #58
14:33
CodeWithHarry
Рет қаралды 138 М.
How I would learn to code (If I could start over)
13:14
CodeWithHarry
Рет қаралды 156 М.
Error Handling: try and catch | JavaScript Tutorial in Hindi #60
12:15
Introduction to Promises | JavaScript Tutorial in Hindi #54
13:27
CodeWithHarry
Рет қаралды 322 М.
How to MASTER Javascript FAST in 2023
12:49
Internet Made Coder
Рет қаралды 374 М.