เนื้อหาของบทความนี้จะเกี่ยวกับthen catch หากคุณต้องการเรียนรู้เกี่ยวกับthen catchมาเรียนรู้เกี่ยวกับหัวข้อthen catchกับselfdirectedce.comในโพสต์Promises Basics, Promise.then() & Promise.catch() | JavaScript Tutorial In Hindi #39นี้.
Table of Contents
สรุปสาระสำคัญของข้อมูลที่เกี่ยวข้องกับthen catchในที่สุดสมบูรณ์Promises Basics, Promise.then() & Promise.catch()
ที่เว็บไซต์Self Directed CEคุณสามารถเพิ่มเนื้อหาอื่น ๆ นอกเหนือจากthen catchเพื่อรับความรู้ที่เป็นประโยชน์มากขึ้นสำหรับคุณ ที่เพจselfdirectedce.com เราอัปเดตข่าวสารใหม่และแม่นยำให้คุณทุกวัน, ด้วยความหวังว่าจะได้ให้บริการผู้ใช้อย่างคุ้มค่าที่สุด ช่วยให้คุณได้รับข้อมูลออนไลน์ที่สมบูรณ์ที่สุด.
คำอธิบายบางส่วนที่เกี่ยวข้องกับหมวดหมู่then catch
►บทช่วยสอน JavaScript สำหรับผู้เริ่มต้นในเพลย์ลิสต์ภาษาฮินดี – ►ซอร์สโค้ด + สื่ออื่น ๆ – ►คลิกที่นี่เพื่อสมัครสมาชิก – วิดีโอภาษาฮินดีที่ดีที่สุดสำหรับการเรียนรู้การเขียนโปรแกรม: ►เรียนรู้ Python In One Video – ►Python หลักสูตรที่สมบูรณ์ในภาษาฮินดี – ►C หลักสูตรภาษาที่สมบูรณ์ในภาษาฮินดี – ►JavaScript หลักสูตรที่สมบูรณ์ในภาษาฮินดี – ►เรียนรู้ JavaScript ในวิดีโอเดียว – ►เรียนรู้ PHP ในวิดีโอเดียว – ►Django หลักสูตรที่สมบูรณ์ในภาษาฮินดี – ►การเรียนรู้ของเครื่องโดยใช้ Python – ►การสร้างและโฮสต์เว็บไซต์ (บล็อกทางเทคนิค) โดยใช้ Python – ►ขั้นสูง บทช่วยสอน Python – ►การเขียนโปรแกรมเชิงวัตถุใน Python – ►Python Data Science และบทช่วยสอน Big Data – ติดตามฉันบนโซเชียลมีเดีย ►เว็บไซต์ (สร้างโดยใช้ Flask) – ►Facebook – ►Instagram – ► Facebook A / c ส่วนตัว – Twitter –
รูปภาพที่เกี่ยวข้องกับเอกสารเกี่ยวกับthen catch

นอกจากการหาข้อมูลเกี่ยวกับบทความนี้ Promises Basics, Promise.then() & Promise.catch() ติดตามเนื้อหาเพิ่มเติมได้ที่ด้านล่าง right
ข้อมูลที่เกี่ยวข้องกับthen catch
#Promises #Basics #Promisethen #amp #Promisecatch #JavaScript #Tutorial #Hindi.
javascript promises explained,promise.catch,javascript promises,promises in javascript,promises javascript hindi,promise.then,javascript tutorial for beginners,learn javascript in hindi,learn javascript,javascript hindi,promises javascript,javascript exercises in hindi,js tutorials in hindi,javascript tutorial for beginners in hindi,learn javascript in hindi complete,complete javascript in hindi,javascript course in hindi,javascript tutorial,javascript.
Promises Basics, Promise.then() & Promise.catch() | JavaScript Tutorial In Hindi #39.
then catch.
เราหวังว่าเนื้อหาที่เราให้ไว้จะเป็นประโยชน์กับคุณ ขอบคุณมากสำหรับการอ่านบทความของเราเกี่ยวกับthen catch
Mai aap logo se promise karta hu ke
mai aap logo to promise acche tarike se batunga
What a way to teach 😂😍
console.log("Promises in JS");
function MoneyBack() {
return new Promise(function (resolve, reject) {
setTimeout(function () {
const money_back = false;
if (!money_back) {
reject("My Friend didn't returned my money back!");
} else {
resolve("Miracle! He returned back my money.");
}
}, 3000);
});
}
MoneyBack()
.then(function (money_back) {
console.log("Damn bro, I'm happy because: " + money_back);
})
.catch(function (money_back) {
console.log("I'm extremely sad because: " + money_back);
});
14:10
thanks harry for such a brilliant and simple explaination. here is my practise
let p1=new Promise((resolve,reject)=>{
let input=prompt("enter a number");
if(input%2==0){
console.log("even number");
resolve("Hurray");
}
else{
console.log("odd number");
reject("oh no!");
}
});
p1.then((msg)=>{console.log(msg);
return new Promise((resolve,reject)=>{
let name=prompt("enter your name");
if(name=="nitin"){
resolve();
}
else{
reject();
}
})
}).then(console.log("Nitin found. balle balle!")).catch((err)=>console.log("Promise rejected!",err));
function func3(a,b){
return new Promise((resolve,reject)=>{
let sum = a+b;
setTimeout(() => {
if(sum<100){
resolve();
}else{
reject("Add money to your wallet");
}
}, 3000);
})
}
func3(16,65).then(()=>{
console.log("Congratulation you can buy this item");
}).catch((err)=>{
console.log(`Sorry! Your have only 100 rupees left in you wallet ……${err}`);
})
console.log('promise concept');
function func1() {
return new Promise(function (resolve, reject) {
setTimeout(function () {
const error = true;
if (!error) {
console.log('work complate');
resolve();
}
else {
console.log('work not complate');
reject();
}
}, 2000)
})
}
func1().then(function () {
console.log('done');
}).catch(function () {
console.log('sorry');
})
Thapa technical explained it better than this video
Please harry kya ap ye 4 concept ko milake ek website banana sikha sakte ho please please please🙏
– Generator
– Promises
– AJAX Request –
– Callback Function
// Quick Quiz
function tryCooking() {
return new Promise(function (resolve, reject) {
const cooking = false;
if (cooking === true) {
resolve();
}
else {
reject();
}
})
}
function isCooked() {
console.log(`Food is cooked.`);
}
function notCooked() {
console.log(`Food isn't cooked.`);
}
tryCooking().then(isCooked).catch(notCooked)
great content
Function func1(){
return new promise (resolve, reject){
SetTimeout(() => {
Console log('Rehan')}, 2000)
Const error = false
If(!error){
Console.log('error not occured')
resolve()
}else {
Console.log('error occured')
Reject()
}
})
})
Func1().then(function (){
Console.log('query resolve')
Resolve()
}.catch(function (){
Console.log('query reject')
Reject()
}
2:00min
Done done
function dish() {
return Promise(function (resolve, reject) {
setTimeout(() => {
const error = true;
if (!error) {
console.log('dish function has Been reject')
resolve();
}
else {
console.log(dish function has been resolve)
reject('its a wrong function');
}
}, 2000);
})
}
dish().then(function(){
console.log("thankyou")
}).catch(function(error){
console.log(very bad )
})
Promise resolved XD Haryy bhai
bhi muzy tu maza a agya phr na ma mara pura samj ma a gaya thank you bhi
function ghumaneJanaHaiAaj() {
return new Promise((resolve, reject) => {
setTimeout(() => {
let SessionCompleteKiya = true;
if (SessionCompleteKiya1 = true) {
console.log("Bhai session complete kiye hai to Bindhast ja");
resolve()
}
else {
console.log("Bhai complete kar pahale and then ja janha jana hai wanha..focus bhai focus");
reject();
}
}, 3000);
})
}
ghumaneJanaHaiAaj().then(() => {
console.log("Sab done hai to chalo nikale ghumane bhai")
}).catch(() => {
console.log(" Session complete nhi hai to weekend pe complete kar bhai..baad mein ghumane ja")
})
https://youtu.be/HVWlcOySeWY
promise resolved!! well explained!!👍
Hillarious sometimes – " mai aapse promise krta hu ki aapko …Promise() … achhe se btaunga yahi hota hai promise" 😂🤣😂🤣😂
5:15
function func5(){
return new Promise(function(resolve, reject){
setTimeout(() => {
const error = false;
if(!error){
resolve('backgroundColor = Green');
}
else{
reject('backgroundColor = Red');
}
}, 3000);
})
}
func5().then((resolution)=>{
document.body.style.background = 'green';
console.dir(resolution);
}).catch((rejection)=>{
document.body.style.background = 'red';
console.dir(rejection);
});
function pakkapromise(){
return new Promise(function (resolve, reject)
{
let str = 'kaccha badam'
if(str ==='kaccha badam') resolve();
else reject();
}}
function badam{console.log("kaccha badam pakka badam")}
function tiktokbana{console.log("tiktok rokks")}
pakkapromise().then(badam).catch(tiktokbana)