Тёмный

Master The Promises in JavaScript in Hindi in 2022 

Thapa Technical
Подписаться 695 тыс.
Просмотров 138 тыс.
50% 1

Welcome, what are Promises in javascript in Hindi? Why JavaScript Promises are the most important topic to master javascript? What is Promise javascript Resolve Reject function? How and When to use Promises in Javascript in Hindi? So Promises are used to handle asynchronous operations in JavaScript.
A Promise has Three states:
fulfilled: Action related to the promise succeeded.
rejected: Action related to the promise failed.
pending: Promise is still pending i.e not fulfilled or rejected yet.
Promises can be consumed by registering functions using .then and .catch methods.
then()
then() is invoked when a promise is either resolved or rejected.
catch()
catch() is invoked when a promise is either rejected or some error has occurred in execution
********** CLICK HERE TO WATCH ************
➡️ Callback Hell in JavaScript: • Callback Hell in JavaS...
➡️ Advanced JavaScript in Hindi Playlist: • Advanced JavaScript Tu...
➡️ ECMAScript Tutorial in Hindi 2020: • Modern JavaScript ES6 ...
➡️ ES5 & ES6 | ECMAScript 6 in One Video in Hindi: • ES5 & ES6 | ECMAScript...
➡️ JavaScript Game Development Series in 2020: • JavaScript Game Develo...
➡️ Source Code Link: www.thapatechn...
➡️ Top 5 Programming Languages in 2020: • Top 5 Programming Lang...
➡️ Ludo Game JavaScript Link: • JavaScript Game in Hin...
➡️Plz show some love to My Siter RU-vid Channel and Plz Subscribe Link: / @mayabeautyvlogs878
**************** MUST WATCH VIDEOS *****************
➡️ How to become a Full Stack Developer 2020: • How to become a Full S...
➡️ How To Become a Web Developer 2020: • How To Become a Web De...
➡️ How JavaScript Works: • How JavaScript Works i...
➡️ Follow me on Instagram: / vinodthapa55
************ Must Watch Videos For Web Development.************
➡️ HTML in One Video: • Learn HTML in One Vide...
➡️ CSS in One video: • Learn Complete CSS In ...
➡️ CSS FlexBox in 30 Minutes: • CSS FlexBox in 30 Minu...
➡️ JavaScript in One video: • JavaScript in One Vide...
➡️ ECMAScript 6 in One Video : • ES5 & ES6 | ECMAScript...
➡️ HTML5 in one video: • HTML5 Tutorial in One ...
➡️ CSS3 in one video: • Learn Complete CSS3 In...
➡️ Bootstrap4 in One video: • Bootstrap 4 in One Vid...
➡️ Jquery in One video: • jQuery in One Video in...
➡️ JSON in one video: • JSON in One Video in H...
➡️ ReactJS in one video: • ReactJS For Beginners ...
➡️ PHP in One Video: • PHP TUTORIAL IN ONE VI...
➡️ NodeJS in one video: / ipnwakoibt
➡️ MySQL in one video: • Complete SQL & MySQL i...
Make Website Responsive Using Media Queries in One Video in Hindi | Web Design Tutorial in Hindi
➡️ Link: • Make Website Responsiv...
DONATION FOR SUPPORT: PhonePay = vinodbahadur@ybl GooglePay: vbthapa55@oksbi
Believe me, all this money will be used to make more quality videos and to make my channel grow. So that I can always provide you awesome free videos :)
Guys, Please support my channel by SUBSCRIBE to my channel and share my videos in your Social Network TimeLines.
Don't Forget to Follow me on all Social Network,
Website Link: www.thapatechn...
Instagram Link: / vinodthapa55
Facebook Link: / vinodthapa55
Twitter Link: / vb55thapa
Facebook ThapaTechnical Page Link: www.facebook.c...

Опубликовано:

 

22 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 139   
@ThapaTechnical
@ThapaTechnical 4 года назад
Ye video ko jarror dekhe, Promise ko master krne ke liye ➡️ Callback Hell in JavaScript: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-fr67u98nckk.html ➡️ Advanced JavaScript in Hindi Playlist: ru-vid.com/group/PLwGdqUZWnOp0hSGwasCjbrWSPrEKqB_kz&disable_polymer=true ➡️ ECMAScript Tutorial in Hindi 2020: ru-vid.com/group/PLwGdqUZWnOp19VX-DM4oHtmWhDfWblFh-
@LabhamJain
@LabhamJain 4 года назад
Main Aapka 1.5 Saal Se Chela Hu Aur Aap Mere Guru...
@Xyzfact91
@Xyzfact91 4 года назад
Bhai please batao aap konsi course kiye ko kaha se ho batao please
@DTUSEM
@DTUSEM 4 года назад
Sir meri website(dtusem.github.io) me about us page open nhi ho rha github pe upload ki thi. About us page ka link kaise change ku
@Dark2115azazel
@Dark2115azazel 2 года назад
kalapani
@shashankshekhar5693
@shashankshekhar5693 3 года назад
Brilliant... Now I understood Promise functionality, due to only you. Thanks a lot Thapa JI.
@MubasshirMiraj
@MubasshirMiraj 3 года назад
I saw many tutorial on promise of js, but I can't understand. After watching your vedio, I understand promises properly.thank you very much.❤️❤️
@priyagurde571
@priyagurde571 2 года назад
Vinod you are too good. Agar aap ke videos nahi hote to mai kabhi Javascript nahi sikh pati aaisa hi lagta hai...I am QA engineer. Mai cypress pe kaam karti hun aur mujhe javascript sikhni padi...aap ke video ne to kaam hi asan kar diya, too good videos..Thank you very much for making awesome javascript videos.🙏🙏
@ThapaTechnical
@ThapaTechnical 2 года назад
Wow Cypress pr, I wanted to knw ki cypress ki help sey how to do website testing n all.. Join my discord server and msg me there ok.. discord.gg/HDTSbFWr
@karantekwani4503
@karantekwani4503 3 года назад
This channel is the most underrated channel on RU-vid
@pushpakrai5303
@pushpakrai5303 2 года назад
Right 👍
@AryanKumar-dp6rz
@AryanKumar-dp6rz 4 года назад
Maine apka css tutorial dekha jo awesome hai..... I love the way you teach.....
@ThapaTechnical
@ThapaTechnical 4 года назад
Thank you so much ☺️
@vivektiwari8667
@vivektiwari8667 Год назад
Now, again you make javaScript easy, thanks a lot, i'm a beginner form non-IT back ground, you make my way easy. Requesting to fresher or beginner follow to "Thapa technical " blindly.
@joyinmahmmadaslamlaskar3355
Honestly bolu, you are really a great teacher I understand everything from your channel Thanks Sir
@gajatejeswarareddy6922
@gajatejeswarareddy6922 3 года назад
Finally understood promises.. Thank u very much sir
@kritikagupta8794
@kritikagupta8794 4 года назад
Thanks a lot sir.U really did a commendable job. So easy explanation to understand. I finally got over the fear of promise.Hats off
@moviesentertainment9623
@moviesentertainment9623 Год назад
hi babe
@mr.ashishrajyadav
@mr.ashishrajyadav 4 года назад
saandaar jabardast jindabaad... thanx bro bohot hi easily apni bohot kuch samjha diya. really
@uponkumar5393
@uponkumar5393 2 года назад
Thank u sir for explaining things in simple and easy way
@johnwilliam4040
@johnwilliam4040 Год назад
literally i mastered thanks for understand us for such a easy way appreciated
@mayank_singh_43
@mayank_singh_43 Год назад
Best Video of promise. This is what i was searching for, thanks a lot sir.
@ThapaTechnical
@ThapaTechnical Год назад
ur welcome :) plz share with your friends too
@kirtisoni21
@kirtisoni21 Год назад
sir makes video on node js 🙏 and thank you so much for such a wonderful course. It's really very helpful.
@RizwanKhan-dx9hx
@RizwanKhan-dx9hx 3 года назад
bhai me pakistan se hu or mera carrer hi apny banaya he sir apka bht bht shukriya
@kazimurtuza271
@kazimurtuza271 3 года назад
Your teaching style is great
@study_shubham946
@study_shubham946 Год назад
Explaining skills = God Level🤯💯
@ThapaTechnical
@ThapaTechnical Год назад
THANK YOU SO MUCH
@jugal.suthar
@jugal.suthar 3 года назад
Wow Thapa.. thankyou so much🔥🙏
@sarangubale190
@sarangubale190 2 года назад
Very nicely explained , my doubt is cleared. Thanks
@priyankasahu3019
@priyankasahu3019 3 года назад
Thank u so much for this video
@archanasharma8535
@archanasharma8535 2 года назад
Your tutorials are brilliant Vinod. keep it up!
@maqbollodhraofficial915
@maqbollodhraofficial915 3 месяца назад
Thanks thapa sir for re-writig
@muskanramchandani7642
@muskanramchandani7642 11 месяцев назад
Wonderful explanation
@sktamim_01
@sktamim_01 3 года назад
WoW! Amazing explanation..... ❤️
@achyutkumarsingh7308
@achyutkumarsingh7308 Год назад
U r amazing teacher ❤️keep it up
@vaibhavrabadiya969
@vaibhavrabadiya969 2 года назад
Sir your all video is very helpful 😀🙂👍
@nayanraval5359
@nayanraval5359 4 года назад
बहुत बढ़िया सर।
@mubeenyasin4763
@mubeenyasin4763 4 года назад
Bhai Bohat Acha explain karty bhai level bhai.
@santoshr1708
@santoshr1708 2 года назад
Thanks dai. This was very helpful.
@jaiswalgaurav957
@jaiswalgaurav957 2 года назад
Sirjiii thank you so much👍👍🔥🔥
@esk9079
@esk9079 3 месяца назад
thankyou so much sir]
@dineshbehera8788
@dineshbehera8788 Год назад
Happy Durga Asthami sir!!
@computertrends4825
@computertrends4825 2 года назад
Awesome explaintion bro
@getknowledgebite3413
@getknowledgebite3413 2 года назад
callback hell se ye better kase h sir bus complexity of code and understanding ke vjh se kya???sir
@naheedfaiz268
@naheedfaiz268 4 года назад
sir,please make more videos in javascript
@DEEPANSHU_NAG
@DEEPANSHU_NAG 4 года назад
Awesome and amazing explanation always ✌🏻👏🏻
@anjalipatel3786
@anjalipatel3786 3 года назад
Thanks a lot
@rishihardia2882
@rishihardia2882 3 года назад
Great efforts, thanks bro :)
@ayanshukhampariya8816
@ayanshukhampariya8816 Год назад
thank you sir
@manish2412
@manish2412 4 года назад
Thanx bhai itni sari information in one Video🤓🤓
@ThapaTechnical
@ThapaTechnical 4 года назад
Welcome bro :) video pasand aaya na
@FernandoGarcia-iz3ni
@FernandoGarcia-iz3ni 4 года назад
Hi, how are you? I like the work you do and the videos you publish. I don't have a professional profile, I don't have a CS degree, I don't even have full secondary education. What course do you recommend to me, that can gives me the knowledge and solid foundations to start as a confident front end web dev and that gives me the possibility to start practicing and carry out my own projects, my idea is to be able to reconvert myself and in the future get a job in the field, I hope you can help me, thanks
@ThapaTechnical
@ThapaTechnical 4 года назад
there are many but You can check mine too... one becoming a front end dev. HTML CSS js html5 css3 bootstrap4 jquery is enough then go for framework .. You will find all in my playlist
@ankitsrivastava2583
@ankitsrivastava2583 4 года назад
Please make videos on cross window communication.
@suresmaharjan9809
@suresmaharjan9809 4 года назад
Dherai ramro Thapa bahadur.
@arjunzundala8247
@arjunzundala8247 4 года назад
Bhai ek bar android bhi sikhado....aap bahut a66a sikhate ho
@anirbanrubel
@anirbanrubel 4 года назад
I understood this promises. Nice.. Har 2sec k baad agar 10bar koi function call karke dikhana chahata hoon to code to bohot lamba ho jayega na.. Koi shortcut way hai?
@ThapaTechnical
@ThapaTechnical 4 года назад
but you have power na ek ek work ko promise me control kr sakte ho... wrna callback Hell previous dekho.. kya haal hota hai
@anirbanrubel
@anirbanrubel 4 года назад
@@ThapaTechnical Ha woh to sahi hai... Call back hell is really hell.. 😂
@harshsehgal8230
@harshsehgal8230 4 года назад
Awesome easy to learn
@GlitchyGlobe
@GlitchyGlobe Год назад
Promises bina set timeout ke use nahi ho sakte kya?
@hamidsahi-lw8qw
@hamidsahi-lw8qw 11 месяцев назад
yes brother voo just aik example real life maay aap api kaay url koo pass kurray ghaay
@nabinghoshmaths6834
@nabinghoshmaths6834 3 года назад
Bhai apko salute😇😇😍😍😍
@RishiRaj-ex9wb
@RishiRaj-ex9wb 2 года назад
Thanks
@rashmideshmukh607
@rashmideshmukh607 Год назад
thank you
@shaileshkuswaha1126
@shaileshkuswaha1126 4 года назад
Sir please make a full playlist on node js
@ThapaTechnical
@ThapaTechnical 4 года назад
jarror aayega :)
@LabhamJain
@LabhamJain 4 года назад
@@ThapaTechnical Thoda Jaldi Please... 🙏🙏🙏
@ManOrDestinyKRR
@ManOrDestinyKRR 3 года назад
Best teacher ❤️
@amiyabhatta5180
@amiyabhatta5180 4 года назад
Can you give example how to use promise with API
@amiyabhatta5180
@amiyabhatta5180 4 года назад
for e.g fetch("api.covid19india.org/raw_data3.json") .
@himanshupanwar8408
@himanshupanwar8408 3 года назад
Ek number
@samareshshil69
@samareshshil69 Год назад
Great
@thecoderraj3777
@thecoderraj3777 4 года назад
Thanks Sir!
@NeerajSingh-ch7wl
@NeerajSingh-ch7wl 4 года назад
API main kaise pata hoga ki resolve hua ki reject... ??? kya resolve aur reject dono ko use karna hota hai ek saath...???
@alleyM2
@alleyM2 3 года назад
use postman
@Howtodothisway
@Howtodothisway 4 года назад
make a video on prototyping
@shujathaliirfan2662
@shujathaliirfan2662 3 года назад
Amazing 👍👍👍👍
@saddamansari5223
@saddamansari5223 2 года назад
Thanks but i have one question, how do we know the promise gets resolved or reject now we just assume that the promise is resolved so can you please understand me
@ThapaTechnical
@ThapaTechnical Год назад
You can use an if-else statement to determine whether to return a resolved or rejected Promise. Here is an example: function myPromiseFunction(someCondition) { if (someCondition) { return Promise.resolve("Success!"); } else { return Promise.reject("Error!"); } }
@PROTECHRAHUL
@PROTECHRAHUL 2 года назад
For loop k.anadar set timeout ua interval use krne pr error aa rha h
@rahulnautiyal3381
@rahulnautiyal3381 4 года назад
So helpfull sir ❤❤❤❤❤❤
@sarojinirout758
@sarojinirout758 2 года назад
If u won't find resolve, then why will u use then... Instead of then u can write only catch for reject
@AshishGautam-sy3vm
@AshishGautam-sy3vm 2 года назад
great
@subhamgupta2211
@subhamgupta2211 2 года назад
Can I declear resolve and reject in one function??? Please reply
@ThapaTechnical
@ThapaTechnical Год назад
Yes, it is possible to declare both a resolved and rejected state in a single function. You can use an if-else statement to determine whether to return a resolved or rejected Promise. Here is an example: `function myPromiseFunction(someCondition) { if (someCondition) { return Promise.resolve("Success!"); } else { return Promise.reject("Error!"); } }`
@sbo-world
@sbo-world 3 года назад
please help thapa sir, 1st condition false hone pe direct catch(error) section me chala jaa raha hai or second function jo hmne created kiya hai wo run hone nhi de raha hai ..... why ? please explain . //exicutor // promise produce const obj1 = new Promise((resolve, reject)=>{ setTimeout(()=>{ let rollnum = [1,2,3,4,5]; let i=2; if( i==1){ resolve(rollnum); }else { reject("Communication error is coming please check your connection"); } },2000); const getBiodata = (rollno) =>{ return new Promise((resolve,reject)=>{ setTimeout((rollno)=>{ const details = { name:'shabbo', age:25 } resolve(`My roll number is ${rollno}. My name is ${details.name} and I'm ${details.age} years old`); },2000,rollno); }) } }); obj1.then((rollno)=>{ console.log(rollno); return getBiodata(rollno[1]); }).then((rollno)=>{ console.log(rollno); }).catch((error)=>{ console.log(error); });
@sbo-world
@sbo-world 3 года назад
I'm waiting for yor answer
@shazbaz5695
@shazbaz5695 3 года назад
Brother love your videos but some of your videos are lengthy only because you repeat yourself a lot so please don't do that other than that great job.
@suhailzack9075
@suhailzack9075 3 года назад
uncaught Reference error: promise is not defined. help me out
@Xyzfact91
@Xyzfact91 4 года назад
Bhai aap kaha se ho aur konsi course kiyo ho please batao
@Vandanasharma-zj6up
@Vandanasharma-zj6up 3 года назад
liked the video
@michaelscott1899
@michaelscott1899 2 года назад
Best video
@BahawalTV
@BahawalTV 4 года назад
Well done Thapa!
@PANKAJ3091
@PANKAJ3091 4 года назад
विनोद सर मुझे जावा स्क्रिप्ट से एक json file बनानी है मेरे कंप्यूटर के फोल्डर के अंदर प्लीज़ मुझे इसका कॉड मिल सकता है क्या और json file me डाटा इंटर करवाने HTML code and pure java script through
@simranbanwait
@simranbanwait 2 года назад
Aye mere ko chakkar aa re la boss
@keshavaggarwal5799
@keshavaggarwal5799 2 года назад
Thanks for your support 😁
@gkathmandu
@gkathmandu 4 года назад
HI BRO, where is solution for printing the gender after 2 sec,?
@deepikakapoor9607
@deepikakapoor9607 4 года назад
Aap kaha se sikhte ho itna kuch
@w.brocks...5815
@w.brocks...5815 4 года назад
Google say hehe😅
@explore_universe_1
@explore_universe_1 Год назад
Bus study Karna parta ha ap logoo kilya
@gtxtitan5082
@gtxtitan5082 Год назад
I love 😘
@khankhan-xy2ct
@khankhan-xy2ct Год назад
pta ni in ki vedio sa sikh k hi mra dimag khrab ho jata ha but i will learn ......
@SobansinghSingh-ht4ok
@SobansinghSingh-ht4ok 8 месяцев назад
Muje pta h
@kashiking7936
@kashiking7936 4 года назад
Sir ak advance project bhi bnaye js me plz
@Viral_1M.videos
@Viral_1M.videos 4 года назад
Sir MLM , MULTI LEVEL MARKETING work pe Video Banaye
@arushsain1493
@arushsain1493 4 года назад
Advance padhu ya modern ecma..??? Koi bhi bta do main begginer pdh liya wo facebook tk 45lesson
@webprogramminghindiurdu3279
@webprogramminghindiurdu3279 4 года назад
well explained, love to watch your videos.
@shreeramkushwaha5683
@shreeramkushwaha5683 Год назад
from Nepal
@haleemasadia4246
@haleemasadia4246 Год назад
7:35 how to get to know if our promise will resolve or fail?
@payshvighodwall4685
@payshvighodwall4685 4 года назад
Sir plz make a e-commerce website plz sir
@ghoshdipan
@ghoshdipan 3 года назад
How to use both resolve & reject together.
@indiancyberwarriors
@indiancyberwarriors 3 года назад
How to define promise
@god-gifted1816
@god-gifted1816 4 года назад
BINOD YOU ARE FAMOUS NOW !!!
@DTUSEM
@DTUSEM 4 года назад
Sir meri website(dtusem.github.io) me about us page open nhi ho rha github pe upload ki thi. About us page ka link kaise change kaise kru
@ThapaTechnical
@ThapaTechnical 4 года назад
just check the menu link proper dia hai ya nai n also about page upload hua hai ya nai
@tushantkankerwal4144
@tushantkankerwal4144 4 года назад
Sir how get a job in react js as a fresher??
@jitendrashivhare1863
@jitendrashivhare1863 4 года назад
Interview questions of react js??
@androidtechsayed201
@androidtechsayed201 3 года назад
💛💛💛
@nirajpatil9040
@nirajpatil9040 3 года назад
promises are little bit complex sr
@chetanchauhan8356
@chetanchauhan8356 3 года назад
how can we get source code for this video ?
@jhalkobihar24
@jhalkobihar24 3 года назад
Why arnnt you using promosm na Hindi plesr
@VishalWadnere
@VishalWadnere Год назад
this is wrong code it wont working properly
@nageshnaik5343
@nageshnaik5343 4 года назад
Htacces in php pllsss
@RASHIDKHAN-zz9wi
@RASHIDKHAN-zz9wi Год назад
sir source ko free kar dijiye ab toh ab toh aap acchi earning kar rahe h
@numanahmad254
@numanahmad254 3 года назад
sir ak baat smj nhi ai ke ap ny dono ko ak he time me kuo nhi use keya than or catch ko matlb ap resolve or reject ko ak he time me use kr ke daikha dyty ke ager osy data mel jay to resolve na mely to reject but ap ny osy comment out kr deya
@PappuLappu-f6f
@PappuLappu-f6f 9 месяцев назад
Bhai font ka naam bta do aapka😂
@uditshar
@uditshar 2 года назад
Constructor are better
Далее
What’s your height?🩷🙀💚
00:59
Просмотров 4,3 млн
Promises in Javascript
10:23
Просмотров 58 тыс.
The Event Loop in JavaScript in Hindi 🔥
12:09
Просмотров 85 тыс.
JavaScript Promises In 10 Minutes
11:31
Просмотров 1,8 млн
Promises | Ep 02  Season 02 - Namaste JavaScript
39:06
Просмотров 506 тыс.
Closure in JavaScript in Hindi 2020
12:33
Просмотров 59 тыс.