Тёмный

javaScript promises explained tutorial 

techsith
Подписаться 148 тыс.
Просмотров 553 тыс.
50% 1

How Promises in JavaScript work and how to use them. Explained in a very simple language with real world example.
JavaScript promises example
How to use promises in JavaScript
How to avoid callback hell, advanced javascript tutorials , Java Script, Callback functions , techsith, techsittube
#javaScript #promises #promise
*My Udemy Courses
www.udemy.com/js-masterclass/
www.udemy.com/course/react-ho...
Follow me for technology updates
* / techsith
* / techsith
* / techsith1
* / 13677140
* / patelhemil
Help me translate this video.
* ru-vid.com_cs_...
Note: use translate.google.com/ to translate this video to your language. Let me know once you do that so i can give you credit. Thank you in advance.

Наука

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

 

2 авг 2016

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 1,2 тыс.   
@slidenerd
@slidenerd 7 лет назад
excellent effort to explain stuff, anyone can know complex concepts but it takes a skilled teacher to break it down :D
@Techsithtube
@Techsithtube 7 лет назад
Thank you for watching :)
@sikandar2501
@sikandar2501 6 лет назад
@slidenerd master in android good to see you here.
@iamkugankumar
@iamkugankumar 6 лет назад
@slidenerd i remember watching all of your tutorials when starting with android a year back. cheers man
@SandeepKumar-cx7cz
@SandeepKumar-cx7cz 3 года назад
Would you like to write this code, using callback So we can understand, what is the benefit of promise and drawback of callback hell
@RinatYouldashbaev
@RinatYouldashbaev 8 лет назад
The best explanation in whole web!
@Techsithtube
@Techsithtube 8 лет назад
Thanks for watching :)
@someshnukala804
@someshnukala804 6 лет назад
Really that's true dude. Superb explanation.
@perminusgaita
@perminusgaita 6 лет назад
True...finally understood it
@azizas9366
@azizas9366 5 лет назад
Agree
@PattyTheFleischer
@PattyTheFleischer 5 лет назад
So true!
@koolstrings9308
@koolstrings9308 7 лет назад
I resolved to a thumbs up
@CameronChardukian
@CameronChardukian 5 лет назад
Haha, well done!
@TehPobo
@TehPobo 3 года назад
I promise i'll do it
@MrFrexys
@MrFrexys 5 лет назад
5 minutes in and you've helped fix my async issues. Thanks so much!
@calebolojo5246
@calebolojo5246 5 лет назад
The best tutorial on Promise!! Finally understand! Thank you!
@Techsithtube
@Techsithtube 5 лет назад
I am glad that you got it . thanks for watching!
@bsajidha
@bsajidha 4 года назад
Was half the way through MDN, then watched your tutorial. You made it a piece of cake. Thanks a lot, it was really helpful.
@CliffStamp
@CliffStamp 6 лет назад
This was a very clear explanation of promises that even a beginner in Javascript could understand as long as they knew/understood how to work with callbacks. Many people just right into very complicated code that beginners can't understand.
@Techsithtube
@Techsithtube 6 лет назад
Thanks for watching!
@euhansarkar
@euhansarkar Год назад
i am completely agree with you
@gustavoilhamorais
@gustavoilhamorais 5 лет назад
This is the very best explanation I've ever seen about "Promises" even 3 years after.
@NoudvD63
@NoudvD63 5 лет назад
Understand that not everybody understands what you understand as a matter of course. RU-vid award 'Best JS Teacher' for this guy.
@Techsithtube
@Techsithtube 5 лет назад
Thank you for an awesome comment.. :)
@sskatepith3276
@sskatepith3276 5 лет назад
the chores analogy makes it so much easier to understand the flow of the code
@tylerkauffman4413
@tylerkauffman4413 6 лет назад
You are amazing thank you, I ran into callback hell last night and redid my script with this methodology and it's so much nicer..
@niranjanpawar2975
@niranjanpawar2975 5 лет назад
Best Example... thanks for sharing .. keep going
@andersheroldchristensen5126
@andersheroldchristensen5126 7 лет назад
That was a very nice explanation! Good job!
@anonymous_anonymity
@anonymous_anonymity 7 лет назад
Awesome tutorial. Honestly speaking this is the first time I learning about promisses. And this video cleared everything.
@ajcics
@ajcics 3 года назад
I have purchased entire bootcamps, courses on advanced javascript, and courses especially on async JavaScript. There is literally no teacher on the internet as good as this man and he has it on RU-vid for free. Incredible
@Techsithtube
@Techsithtube 3 года назад
Ashton, I am glad that you feel that way. Keep on learning buddy. Thanks for watching!
@oaks348
@oaks348 5 лет назад
I keep coming back to this video when I forget how to do this. Clearest, simplest, and best explanation out there.
@hunterjennings4708
@hunterjennings4708 5 лет назад
This was an insanely clear, and helpful explanation. Thank you so much for making this. Cheers!
@mayyuhan8691
@mayyuhan8691 4 года назад
Man, your explanation is amazing! The way you explained everything, especially when you did everything step by step with the parameters by adding them later etc. You went through each iteration and explained it perfectly. Thanks a lot!
@Techsithtube
@Techsithtube 4 года назад
May, thanks for watching and the awesome comment
@PerryCS2
@PerryCS2 5 лет назад
this is by far THE best explanation on youtube. not only does it show passing variables into another promise but it's super clear and well done! Thank you!
@junedchhipa
@junedchhipa 7 лет назад
After watching so many videos, this one clicked immediately. Thanks!!
@user-in6xo7tn3k
@user-in6xo7tn3k 6 лет назад
Promised and resolved ..... great course
@Techsithtube
@Techsithtube 6 лет назад
Thanks for watching!:)
@silenceimpaired
@silenceimpaired 7 лет назад
I wish Mozilla documentation on JavaScript was this clear ;)
@greatcreate82
@greatcreate82 7 лет назад
lol agreed
@johnsailor3590
@johnsailor3590 7 лет назад
i came from mozilla documentation
@sl8fg
@sl8fg 6 лет назад
me toooooooooooooo
@xinwenjiang5635
@xinwenjiang5635 6 лет назад
I came from mozilla documentation too!
@sawyerrken8112
@sawyerrken8112 6 лет назад
+1 more coder coming from Mozilla documentation
@prabhatkumar08
@prabhatkumar08 7 лет назад
One of the best video to understand promises. Thanks a lot !!!
@MarcEdem
@MarcEdem 6 лет назад
This is pretty amazing, the best explanation I've found in years on any JS topic. Watching you explaining, and I'm just smiling about your skills to break things down so easily that anyone can understand the concept. *Respect* . You got a new subs.
@MarlonJohnYnion
@MarlonJohnYnion 6 лет назад
Thank you for this! The best explanation ever!
@TheFrogfather1
@TheFrogfather1 5 лет назад
Nice clear explanation - thank you!
@tomeberhard74
@tomeberhard74 4 года назад
Fist bump and high five, I adapted this code to handle multiple API requests and populate/update 4 option drop downs, and it worked on the first try. That never happens, so thank you!! Well worth the time to watch.
@austinfisher148
@austinfisher148 7 лет назад
I'm just learning to code and have been having trouble understanding promises, but this was all I needed. Thank you!
@elisolna
@elisolna 8 лет назад
great video! cant wait for rxjs :)
@tzetrikoiand441
@tzetrikoiand441 8 лет назад
This video is as awesome as the descripted technik, thank you!
@Techsithtube
@Techsithtube 8 лет назад
thanks for watching :)
@namanjain1107
@namanjain1107 6 лет назад
amazing explanation sir
@perrymoen1447
@perrymoen1447 4 года назад
Thank you for this breakdown! I was just on MDN for about 45 min reading documentation, and still didn't get as far.. Now I can go back and read the documentation with more context, it's making much more sense. Thank you for putting this out there...
@jasperzanjani
@jasperzanjani 5 лет назад
this is a very succinct explanation of what is going on
@nassimdaoud4215
@nassimdaoud4215 7 лет назад
Thanks mate, you save my ass from the horror of google search results
@rajveersinghgangwar
@rajveersinghgangwar 5 лет назад
Well explained tutorial
@ReverendDromaeo
@ReverendDromaeo 6 лет назад
Read myself through 4 guides without understanding it, before finding this video. Watched it one time and got the hang of it. Awesome explanation!
@Mathspy
@Mathspy 7 лет назад
"I promised this tutorial and I resolved it" Oh man :'>
@nomnom207
@nomnom207 7 лет назад
Even a noob like me can understand it!! Thanks man.
@indigozaidsamudro9007
@indigozaidsamudro9007 Год назад
its been 6 years and it's still make me understand javascript. thank you!
@dominicthomas1508
@dominicthomas1508 6 лет назад
simple explanation good
@onlyRyanRoger
@onlyRyanRoger 5 лет назад
this is awesome! I've recently started learning code with Jonas's JavaScript course. I was still confused by promises and your explanation was really clear!
@Techsithtube
@Techsithtube 5 лет назад
I am glad you got it. Thanks for watching!
@gauravsharma4468
@gauravsharma4468 4 года назад
Still relevant and best explanation in middle of 2019. Love your style !!
@Techsithtube
@Techsithtube 4 года назад
Thanks Gaurav for the nice comment . keep on learning!
@Rockstervivek
@Rockstervivek 5 лет назад
I have searched the whole web. But this explantion is the best by mile.
@waseemaslam6450
@waseemaslam6450 6 лет назад
Good one
@ahmadmalikarma7x892
@ahmadmalikarma7x892 8 лет назад
100% understand your tutorial.
@vitaly7491
@vitaly7491 5 лет назад
Veeeeery good explanation. Thank you)
@sagarpatil8356
@sagarpatil8356 5 лет назад
perfect example.. and very simple explanation.
@Gamewithstyle
@Gamewithstyle 7 лет назад
I've been working with platforms like Firebase that uses promises and never fully understood the concept until now. Thanks for the tutorial
@pleongomez
@pleongomez 7 лет назад
Very useful, thanks a lot!! Regards!!
@worthapost
@worthapost 6 лет назад
Wow. For God sake keep uploading such great videos. How easily you made us understand.
@Techsithtube
@Techsithtube 6 лет назад
I am glad it helped. Thanks for watching!
@JoeWong81
@JoeWong81 5 лет назад
Dude I've watched promise videos for like a year and I finally got it after watching your vid techsith. You're the man!
@Techsithtube
@Techsithtube 5 лет назад
Thanks buddy for an awesome comment.
@kovan111
@kovan111 3 года назад
Thank you thank youuuu..... a million times. Literally i watched at least 20 videos. Never got me head around it. Except yours. Absolutely great tutorial and great teacher u are
@davidacosta6383
@davidacosta6383 5 лет назад
Very good my friend, I appreciate this video *watchedVideo.then( ( ) => likedAndSubscribed( ) )*
@arjunbollam5854
@arjunbollam5854 5 лет назад
I resolved to subscribing to your channel
@Techsithtube
@Techsithtube 5 лет назад
Thank you for subscribing :)
@romikonlinepotapenko3475
@romikonlinepotapenko3475 5 лет назад
const promiseToSubscribe = new Promise((resolve, reject) => { let isWellExplained; let videoLength = 785400; // length of video in milliseconds setTimeout(() => { // watching video ... //done isWellExplained = true; isWellExplained ? resolve("Will subscribe definitely. The best explantion on promises") : reject("Didn't understand a f...ing thing. Just another mediocre tutorial"); }, videoLength); }); promiseToSubscribe.then(result => console.log(result)).catch(result => console.log(result));
@karthikbadarinath
@karthikbadarinath 5 лет назад
I struggled for this since morning. Finally, a 10 minutes video help me complete my work! Thank you
@AbhinavKumardns
@AbhinavKumardns 3 года назад
That's how we define how one should teach. Crystal clear
@danielzuzevich4161
@danielzuzevich4161 6 лет назад
Heroic explanation.
@Techsithtube
@Techsithtube 6 лет назад
Thanks for watching!
@rajashekhar433
@rajashekhar433 7 лет назад
Excellent....please provide Angular videos
@Techsithtube
@Techsithtube 7 лет назад
I am building a series on angular4
@niranjanpoddar3203
@niranjanpoddar3203 6 лет назад
It will be very helpfull. Your videos always help me.
@NaveenKolambage
@NaveenKolambage 6 лет назад
niyamai bn
@rockycool6980
@rockycool6980 5 лет назад
Amazing and crystal clear explanation
@wfpnknw32
@wfpnknw32 7 лет назад
bump, here is the jsfiddle: jsfiddle.net/u74L4n1t/
@wfpnknw32
@wfpnknw32 7 лет назад
Here's the wider promises example: jsfiddle.net/ah3322/396o81xb/
@hadab89
@hadab89 5 лет назад
EXCELLENT
@dymphna711
@dymphna711 5 лет назад
I wish more people explained this as well. You're wonderful!
@arafatzahan3697
@arafatzahan3697 7 лет назад
"I'm not gonna write how to clean your room in JavaScript.." I CAN'T LEARN IF I'M LAUGHING SO HARD DAMNIT
@Techsithtube
@Techsithtube 7 лет назад
I am glad that you find it funny :) happy learning.
@JhonAndrew
@JhonAndrew 7 лет назад
The first few seconds I thought I am now finally going to learn how to clean my room in javascript. But it broke my heart. :( LOL.
@CameronChardukian
@CameronChardukian 5 лет назад
Hahaha
@juliofreitas1652
@juliofreitas1652 4 года назад
At the beginning of the video he mentioned the callback function so I saw that he had a video on this subject suggested by youtube, I paused this video and went to learn about the callback function. When I returned to this video I realized that I had used the same principle as a callback function hahah
@paruspm
@paruspm 4 года назад
Simplest explanation on promise , thanks for posting!
@dmytrokulikov2489
@dmytrokulikov2489 8 лет назад
so simple and lucidly, as closures explanation was,thanks techsith
@parseshyam4283
@parseshyam4283 5 лет назад
Awesome Explanation !!! thumbs up!
@andideveloper8345
@andideveloper8345 5 лет назад
This tutorial is the resolve of the promise for js peace from Albania you are a Guru of Javascript !!
@sasayaki
@sasayaki 5 лет назад
I watched this and now MDN is so much easier to absorb. Thank you so much ❤
@tariqdanish
@tariqdanish 4 года назад
The best explanation on promises, you are gods gift to humanity.
@Techsithtube
@Techsithtube 4 года назад
Thanks for watching. I am glad you got it
@MegaLifetimestudent
@MegaLifetimestudent 3 года назад
Best tutorial on Promises on RU-vid. Thank you very much
@LMasniuk
@LMasniuk 7 лет назад
I was struggling to understand promises by reading docs, but watching this was really helpful. Thank you!
@HukMarta
@HukMarta 6 лет назад
Thank you very much for the video) I've been watching your channel for a couple of days and js is becoming more and more clear to me) You make really awesome content, please, keep it up^^ It has to be a talent of explaining such complicated things in that simple way) I'm your subscriber and I've already recommended those tutorials to my friends)
@jinwookkim8511
@jinwookkim8511 5 лет назад
So simple and delicate tutorial ever! :)
@manishpurve6161
@manishpurve6161 5 лет назад
very good explaination
@yehiatarek711
@yehiatarek711 5 лет назад
Awesome Tutorial Thanks
@triplepines4449
@triplepines4449 5 лет назад
Thank you. Seriously. This is the best explanation I've found and I must have gone through a half dozen.
@pratikchauhan9325
@pratikchauhan9325 5 лет назад
You explains such difficult topics easily by comparing it with real world thing. Thanks for making such tutorials.
@javascript_developer
@javascript_developer 4 года назад
No one can explain better than you techshit. Thanks a lot.
@sahilchugh6482
@sahilchugh6482 6 лет назад
Finally a clean explanation of Promise... thanks man
@caesarbala
@caesarbala 7 лет назад
No one can teach you javascript like you do. I don't know any thing about javascript before wathcing your videos but suprisingly i now became javascript developer after watching your videos thanks Guru ji (Y)
@Techsithtube
@Techsithtube 7 лет назад
Thanks for a inspiring comment. Its the viewer like you keeps my motivation high. :)
@P8860
@P8860 7 лет назад
I wish JavaScript documentation was this clear and concise. Great Job!
@harshchauhanpro
@harshchauhanpro 7 лет назад
I just started learning advanced JS, and i was pissed off, thanks to you techsith you just made unbelievably easy. I love it. :D
@Techsithtube
@Techsithtube 7 лет назад
Thanks for watching! :)
@bren.r
@bren.r 5 лет назад
Seriously the best, most clear video on Promises. You are truly awesome!
@lius2340
@lius2340 7 лет назад
Very good! Congratulations and thank you!
@trymysolution9831
@trymysolution9831 5 лет назад
Superb Superb Superb............No Question/No Doubts.... Superb Superb Superb...........
@AJonesB83
@AJonesB83 3 года назад
Love your tutorials techsith, precise and clear as usual. Thank you!
@marczenkner9667
@marczenkner9667 7 лет назад
Great explanation. Thanks so much.
@yeungfelix01
@yeungfelix01 6 лет назад
This tutorial is the BEST coding tutorial I have ever seen. Thank you.
@deepanchakkaravarthyr5826
@deepanchakkaravarthyr5826 5 лет назад
Nice and Simple...Thank you very much!
@moolipit
@moolipit 7 лет назад
thanks for this 'ohhh' moment
@ShaileshSakhareIndiawala
@ShaileshSakhareIndiawala 7 лет назад
Great Explanation and Analogy with Cleaning Room example.
@nafeesahmed4942
@nafeesahmed4942 7 лет назад
You explained very well now I'll never forget.
@joegleiter9260
@joegleiter9260 4 года назад
wow such a good explanation. Thanks techSith :) keep up the good tutorials
@anandhusnair349
@anandhusnair349 3 года назад
Why this guy so underrated? SOMEBODY PLEASE EXPLAIN
@kyhuynh5081
@kyhuynh5081 5 лет назад
best explaination I have watched
@hiteshkumarmakwana7761
@hiteshkumarmakwana7761 7 лет назад
Thank you for wonderful explanation.
@waqarahmed1912
@waqarahmed1912 6 лет назад
well explained the promises concept
Далее
Async Await JavaScript ES7
26:39
Просмотров 120 тыс.
Javascript Closure tutorial ( Closures Explained )
12:52
Tricky JavaScript Interview Questions and Answers
16:35
What are JavaScript PROMISES? 🤞
12:37
Просмотров 41 тыс.
Learn To Code Like a GENIUS and Not Waste Time
9:41
Просмотров 1,2 млн
JavaScript Promises  -- Tutorial for Beginners
37:05
Просмотров 109 тыс.
How to Use Javascript Promises
19:45
Просмотров 109 тыс.
Is C# Better than Java?
18:41
Просмотров 12 тыс.
How To Unlock Your iphone With Your Voice
0:34
Просмотров 26 млн
Купил iPhone 15. Первые эмоции!
0:58
iOS 18 vs Samsung, Xiaomi,Tecno, Android
0:54
Просмотров 81 тыс.