Тёмный

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 7 лет назад
The best explanation in whole web!
@Techsithtube
@Techsithtube 7 лет назад
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
@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.. :)
@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
@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!
@niranjanpawar2975
@niranjanpawar2975 5 лет назад
Best Example... thanks for sharing .. keep going
@gustavoilhamorais
@gustavoilhamorais 5 лет назад
This is the very best explanation I've ever seen about "Promises" even 3 years after.
@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.
@sskatepith3276
@sskatepith3276 5 лет назад
the chores analogy makes it so much easier to understand the flow of the code
@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
@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..
@MrFrexys
@MrFrexys 5 лет назад
5 minutes in and you've helped fix my async issues. Thanks so much!
@anonymous_anonymity
@anonymous_anonymity 7 лет назад
Awesome tutorial. Honestly speaking this is the first time I learning about promisses. And this video cleared everything.
@waseemaslam6450
@waseemaslam6450 6 лет назад
Good one
@dominicthomas1508
@dominicthomas1508 6 лет назад
simple explanation good
@andersheroldchristensen5126
@andersheroldchristensen5126 7 лет назад
That was a very nice explanation! Good job!
@user-in6xo7tn3k
@user-in6xo7tn3k 6 лет назад
Promised and resolved ..... great course
@Techsithtube
@Techsithtube 6 лет назад
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.
@namanjain1107
@namanjain1107 6 лет назад
amazing explanation sir
@TheFrogfather1
@TheFrogfather1 5 лет назад
Nice clear explanation - thank you!
@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
@prabhatkumar08
@prabhatkumar08 7 лет назад
One of the best video to understand promises. Thanks a lot !!!
@junedchhipa
@junedchhipa 7 лет назад
After watching so many videos, this one clicked immediately. Thanks!!
@hunterjennings4708
@hunterjennings4708 5 лет назад
This was an insanely clear, and helpful explanation. Thank you so much for making this. Cheers!
@MarlonJohnYnion
@MarlonJohnYnion 6 лет назад
Thank you for this! The best explanation ever!
@sagarpatil8356
@sagarpatil8356 5 лет назад
perfect example.. and very simple explanation.
@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!
@jasperzanjani
@jasperzanjani 5 лет назад
this is a very succinct explanation of what is going on
@elisolna
@elisolna 7 лет назад
great video! cant wait for rxjs :)
@parseshyam4283
@parseshyam4283 5 лет назад
Awesome Explanation !!! thumbs up!
@austinfisher148
@austinfisher148 6 лет назад
I'm just learning to code and have been having trouble understanding promises, but this was all I needed. Thank you!
@vitaly7491
@vitaly7491 5 лет назад
Veeeeery good explanation. Thank you)
@ahmadmalikarma7x892
@ahmadmalikarma7x892 7 лет назад
100% understand your tutorial.
@rajveersinghgangwar
@rajveersinghgangwar 5 лет назад
Well explained tutorial
@hadab89
@hadab89 5 лет назад
EXCELLENT
@tzetrikoiand441
@tzetrikoiand441 7 лет назад
This video is as awesome as the descripted technik, thank you!
@Techsithtube
@Techsithtube 7 лет назад
thanks for watching :)
@nomnom207
@nomnom207 7 лет назад
Even a noob like me can understand it!! Thanks man.
@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...
@Rockstervivek
@Rockstervivek 5 лет назад
I have searched the whole web. But this explantion is the best by mile.
@pleongomez
@pleongomez 7 лет назад
Very useful, thanks a lot!! Regards!!
@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!
@NaveenKolambage
@NaveenKolambage 6 лет назад
niyamai bn
@manishpurve6161
@manishpurve6161 5 лет назад
very good explaination
@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!
@Mathspy
@Mathspy 7 лет назад
"I promised this tutorial and I resolved it" Oh man :'>
@paruspm
@paruspm 4 года назад
Simplest explanation on promise , thanks for posting!
@ShaileshSakhareIndiawala
@ShaileshSakhareIndiawala 7 лет назад
Great Explanation and Analogy with Cleaning Room example.
@nassimdaoud4215
@nassimdaoud4215 7 лет назад
Thanks mate, you save my ass from the horror of google search results
@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!
@yehiatarek711
@yehiatarek711 5 лет назад
Awesome Tutorial Thanks
@rockycool6980
@rockycool6980 5 лет назад
Amazing and crystal clear explanation
@davidacosta6383
@davidacosta6383 5 лет назад
Very good my friend, I appreciate this video *watchedVideo.then( ( ) => likedAndSubscribed( ) )*
@danielzuzevich4161
@danielzuzevich4161 6 лет назад
Heroic explanation.
@Techsithtube
@Techsithtube 6 лет назад
Thanks for watching!
@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.
@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.
@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));
@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.
@marczenkner9667
@marczenkner9667 7 лет назад
Great explanation. Thanks so much.
@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!
@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
@wfpnknw32
@wfpnknw32 7 лет назад
bump, here is the jsfiddle: jsfiddle.net/u74L4n1t/
@abunadia9199
@abunadia9199 5 лет назад
Good job
@dayanperera0124
@dayanperera0124 7 лет назад
great
@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
@wfpnknw32
@wfpnknw32 7 лет назад
Here's the wider promises example: jsfiddle.net/ah3322/396o81xb/
@jassihambran
@jassihambran 3 года назад
Great.
@deepanchakkaravarthyr5826
@deepanchakkaravarthyr5826 5 лет назад
Nice and Simple...Thank you very much!
@zhiqiuzang679
@zhiqiuzang679 5 лет назад
Great Video
@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
@dmytrokulikov2489
@dmytrokulikov2489 7 лет назад
so simple and lucidly, as closures explanation was,thanks techsith
@hiteshkumarmakwana7761
@hiteshkumarmakwana7761 7 лет назад
Thank you for wonderful explanation.
@ashabiradar4705
@ashabiradar4705 7 лет назад
very nice explained. thank u.
@anonme3140
@anonme3140 7 лет назад
Excellent tutorial on Promises...best ive seen on youtube
@karthikbadarinath
@karthikbadarinath 5 лет назад
I struggled for this since morning. Finally, a 10 minutes video help me complete my work! Thank you
@vamsikrishna5278
@vamsikrishna5278 5 лет назад
wow such an amazing explanation on promises.. nobody can replace your explanation sir..
@thecodersexperience
@thecodersexperience 5 лет назад
Nice explanation sir
@delowerhossain493
@delowerhossain493 5 лет назад
nice tutorial.
@waqarahmed1912
@waqarahmed1912 6 лет назад
well explained the promises concept
@raviteja2939
@raviteja2939 3 года назад
Awesome 👍
@reactivicky
@reactivicky 4 года назад
Awesome explanation
@devendralr
@devendralr 7 лет назад
Awesome video... Great job @techsith
@ReverendDromaeo
@ReverendDromaeo 5 лет назад
Read myself through 4 guides without understanding it, before finding this video. Watched it one time and got the hang of it. Awesome explanation!
@jinwookkim8511
@jinwookkim8511 5 лет назад
So simple and delicate tutorial ever! :)
@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.
@damianspizzirri8164
@damianspizzirri8164 4 года назад
Excellent video.
@lobsang8405
@lobsang8405 6 лет назад
wonderful
@RaihanTaher
@RaihanTaher 7 лет назад
Very well explained. You made it very easy. Thanks for sharing.
@ShashankGram
@ShashankGram 7 лет назад
Best explanation
@indigozaidsamudro9007
@indigozaidsamudro9007 Год назад
its been 6 years and it's still make me understand javascript. thank you!
@ajk7151
@ajk7151 3 года назад
awesome
@jeetenzhurlollz8387
@jeetenzhurlollz8387 7 лет назад
excellent tutorial
@kyhuynh5081
@kyhuynh5081 5 лет назад
best explaination I have watched
@dymphna711
@dymphna711 5 лет назад
I wish more people explained this as well. You're wonderful!
@dilipsolanki7856
@dilipsolanki7856 6 лет назад
Great explanation. Keep posting such videos.
@Imgahlot
@Imgahlot 5 лет назад
Really awesome.. worth watching it.
@amiryunas
@amiryunas 4 года назад
such a great explanation of Promises. thank you so much!
@duddukurimahesh
@duddukurimahesh 5 лет назад
well explained. we need more videos on it
@davidobodo3605
@davidobodo3605 4 года назад
i like this...very wonderful
@mucahitinel
@mucahitinel 7 лет назад
Thanks for video. Very usable technique
Далее
Async Await JavaScript ES7
26:39
Просмотров 120 тыс.
🎙ПОЮ твои ЛЮБИМЫЕ ПЕСНИ 🌇
3:11:38
The Importance of THIS in Javascript
22:59
Просмотров 21 тыс.
Tricky JavaScript Interview Questions and Answers
16:35
JavaScript Promises  -- Tutorial for Beginners
37:05
Просмотров 108 тыс.
The Async Await Episode I Promised
12:04
Просмотров 1,1 млн
Is C# Better than Java?
18:41
Просмотров 12 тыс.
top 10 JavaScript tricks
17:18
Просмотров 19 тыс.
ВИPУC НА МАКБУК
0:21
Просмотров 32 тыс.
How To Unlock Your iphone With Your Voice
0:34
Просмотров 25 млн
ЛУЧШИЙ ПОВЕРБАНК ОТ XIAOMI
0:39
Просмотров 16 тыс.
Купил этот ваш VR.
37:21
Просмотров 267 тыс.