Master The Promises in JavaScript in Hindi in 2022
HTML-код
- Опубликовано: 21 авг 2024
- 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 RUclips 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...
Ye video ko jarror dekhe, Promise ko master krne ke liye ➡️ Callback Hell in JavaScript: ruclips.net/video/fr67u98nckk/видео.html
➡️ Advanced JavaScript in Hindi Playlist: ruclips.net/p/PLwGdqUZWnOp0hSGwasCjbrWSPrEKqB_kz&disable_polymer=true
➡️ ECMAScript Tutorial in Hindi 2020: ruclips.net/p/PLwGdqUZWnOp19VX-DM4oHtmWhDfWblFh-
Main Aapka 1.5 Saal Se Chela Hu Aur Aap Mere Guru...
Bhai please batao aap konsi course kiye ko kaha se ho batao please
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
kalapani
Brilliant... Now I understood Promise functionality, due to only you. Thanks a lot Thapa JI.
This channel is the most underrated channel on RUclips
Right 👍
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.❤️❤️
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.🙏🙏
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
Maine apka css tutorial dekha jo awesome hai.....
I love the way you teach.....
Thank you so much ☺️
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
hi babe
Finally understood promises.. Thank u very much sir
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.
Honestly bolu, you are really a great teacher
I understand everything from your channel
Thanks Sir
saandaar jabardast jindabaad... thanx bro bohot hi easily apni bohot kuch samjha diya. really
Best Video of promise. This is what i was searching for, thanks a lot sir.
ur welcome :) plz share with your friends too
Explaining skills = God Level🤯💯
THANK YOU SO MUCH
Wow Thapa.. thankyou so much🔥🙏
WoW!
Amazing explanation..... ❤️
literally i mastered thanks for understand us for such a easy way appreciated
Your tutorials are brilliant Vinod. keep it up!
Thank u sir for explaining things in simple and easy way
bhai me pakistan se hu or mera carrer hi apny banaya he sir apka bht bht shukriya
Your teaching style is great
Thank u so much for this video
sir makes video on node js 🙏 and thank you so much for such a wonderful course. It's really very helpful.
Thanks thapa sir for re-writig
Very nicely explained , my doubt is cleared. Thanks
Awesome and amazing explanation always ✌🏻👏🏻
Wonderful explanation
Bhai Bohat Acha explain karty bhai level bhai.
U r amazing teacher ❤️keep it up
बहुत बढ़िया सर।
Happy Durga Asthami sir!!
Sir your all video is very helpful 😀🙂👍
Thanx bhai itni sari information in one Video🤓🤓
Welcome bro :) video pasand aaya na
Great efforts, thanks bro :)
Dherai ramro Thapa bahadur.
Thanks dai. This was very helpful.
Sirjiii thank you so much👍👍🔥🔥
Bhai apko salute😇😇😍😍😍
Best teacher ❤️
thankyou so much sir]
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
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
Awesome explaintion bro
Well done Thapa!
Ek number
Aap kaha se sikhte ho itna kuch
Google say hehe😅
Bus study Karna parta ha ap logoo kilya
I love 😘
pta ni in ki vedio sa sikh k hi mra dimag khrab ho jata ha but i will learn ......
Muje pta h
Awesome easy to learn
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.
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?
but you have power na ek ek work ko promise me control kr sakte ho... wrna callback Hell previous dekho.. kya haal hota hai
@@ThapaTechnical Ha woh to sahi hai... Call back hell is really hell.. 😂
Sir please make a full playlist on node js
jarror aayega :)
@@ThapaTechnical Thoda Jaldi Please... 🙏🙏🙏
thank you sir
sir,please make more videos in javascript
Great
Best video
BINOD YOU ARE FAMOUS NOW !!!
So helpfull sir ❤❤❤❤❤❤
Amazing 👍👍👍👍
Thanks
Bhai ek bar android bhi sikhado....aap bahut a66a sikhate ho
thank you
Thanks Sir!
For loop k.anadar set timeout ua interval use krne pr error aa rha h
Thanks for your support 😁
If u won't find resolve, then why will u use then... Instead of then u can write only catch for reject
great
Thanks a lot
Aye mere ko chakkar aa re la boss
well explained, love to watch your videos.
Please make videos on cross window communication.
Promises bina set timeout ke use nahi ho sakte kya?
yes brother voo just aik example real life maay aap api kaay url koo pass kurray ghaay
liked the video
Can you give example how to use promise with API
for e.g fetch("api.covid19india.org/raw_data3.json") .
uncaught Reference error: promise is not defined.
help me out
callback hell se ye better kase h sir bus complexity of code and understanding ke vjh se kya???sir
from Nepal
API main kaise pata hoga ki resolve hua ki reject... ??? kya resolve aur reject dono ko use karna hota hai ek saath...???
use postman
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
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!");
}
}
7:35 how to get to know if our promise will resolve or fail?
make a video on prototyping
💛💛💛
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);
});
I'm waiting for yor answer
Can I declear resolve and reject in one function???
Please reply
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!");
}
}`
Sir aap Ek project bato plz
How to use both resolve & reject together.
Sir ak advance project bhi bnaye js me plz
HI BRO, where is solution for printing the gender after 2 sec,?
विनोद सर मुझे जावा स्क्रिप्ट से एक json file बनानी है मेरे कंप्यूटर के फोल्डर के अंदर प्लीज़ मुझे इसका कॉड मिल सकता है क्या और json file me डाटा इंटर करवाने HTML code and pure java script through
Advance padhu ya modern ecma..??? Koi bhi bta do main begginer pdh liya wo facebook tk 45lesson
Bhai aap kaha se ho aur konsi course kiyo ho please batao
How to define promise
Sir plz make a e-commerce website plz sir
promises are little bit complex sr
Sir MLM , MULTI LEVEL MARKETING work pe Video Banaye
14:05 [ 3 viruses found 😄 ]
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
just check the menu link proper dia hai ya nai n also about page upload hua hai ya nai
how can we get source code for this video ?
sir source ko free kar dijiye ab toh ab toh aap acchi earning kar rahe h
Sir how get a job in react js as a fresher??
Interview questions of react js??
this is wrong code it wont working properly
Bhai font ka naam bta do aapka😂
Why arnnt you using promosm na Hindi plesr
Htacces in php pllsss