If you enjoy promises make sure to checkout Async/Await. kzbin.info/www/bejne/jJCuo2yFiMt3m7c
@maxrockbin5 жыл бұрын
Did something go wrong with the video upload? I'm seeing your VS Code video instead of your JScript promises video
@WebDevSimplified5 жыл бұрын
It sounds like a problem with KZbin. That has happened to me before. Just try refreshing the page. That usually fixes it for me.
@manishpingale65585 жыл бұрын
Can you create a video on firebase cloud functions
@WebDevSimplified5 жыл бұрын
I have never used firebase so I am not sure if I will cover it anytime soon
@mpey_project5 жыл бұрын
is promise doesn't need to be declared first?
@1polyron15 жыл бұрын
"I promise to make the best video on promises I can." I like this guy.
@naynyamish2705 жыл бұрын
"I promise to make a video on promises the best that I can" or "I promise to make , as best as i can , a video on promise " FTFY
@yansun38084 жыл бұрын
Reject his promise. I am kidding :)
@atribhattacharyya26314 жыл бұрын
Resolved..:)
@JOc17KER4 жыл бұрын
00:24
@gianfrancobriones10 ай бұрын
He should've shown a sample of a minimum time consuming URL visit, not simple artithmetic 1 + 1. I don't like this tutotial. ~04:37
@justinstarr16672 жыл бұрын
Just a reminder that Callback Hell IS a real place where you WILL be sent at the first missing curly brace. In all seriousness though, great walkthrough!
@ThePazuzu4 жыл бұрын
When you're self taught your knowledge is all around the place, like you know classes, instantiation, scope, ES6, and a bunch of advanced stuff but don't know basic stuff like git. I'm in the middle of a very async heavy project on Express and was having a hard time with promises. I decided to take the WHOLE day off to look into it and it only took me 11 minutes thanks to this video. Now I can go back to my project with an extra day on my deadline. Thanks man, that was awesome!
@notdaveschannel98434 жыл бұрын
"When you're self taught your knowledge is all around the place". Yeah, that's where I am with a lot of coding. I've been using 'async... await' and 'fetch' without really understanding the underlying 'Promise' object. Makes a lot more sense now!
@Meleeman0113 жыл бұрын
express can do async now lol nice. i since moved on to koa but i use express for future devs that aren't me.
@jonathanr76039 ай бұрын
@@notdaveschannel9843 async await is just syntatic sugar, you need to know promises instead
@mildracc61915 ай бұрын
This is such a factual comment. Ive made 3d games with javascript that run in the browser, yet here I am, finally learning how promises work😂
@udaya98962 жыл бұрын
i took a seminar of this video and i got appreciation from my manager and my team mates. Thankyou for the video
@returnZeroo5 жыл бұрын
You resolve your promise, you make me fully understand
@WebDevSimplified5 жыл бұрын
I'm glad I could help
@joma03054 жыл бұрын
Sorry for my nooby question, i am more python guy, just starting my journey into js. But i didn't get what for you need "promises"? Why you just don't use "if statement"?
@Al_Gonzo4 жыл бұрын
@@joma0305 watch the video one more time then because he explained it multiple times
@joma03054 жыл бұрын
@@Al_Gonzo i did ut before your comment. If you so smart pls explain
@joma03054 жыл бұрын
@@Al_Gonzo or it's just a "sugar" of js pl
@fighter893111 ай бұрын
Your video is 5 years old, But I think it’s still the best.
watchedTheVideo.then((data)=>{ }).catch((error)=>{ console.log("error: ", error) }); ..................... CONSOLE - error: "PERFECT PROMISE VIDEO FOR BEGINNERS"
@kevinm88655 жыл бұрын
@Đeath Vader lol
@DarkAcademyUniversity6 ай бұрын
@@garrybogdanhoshame
@alidev68824 жыл бұрын
normally i don't pass the comment on youtube but after watching this videos, i did't control myself coz i watched too many videos to understand what actually promises do but end up with disappointed but u just nailed it thank u so much.
@theannoyingone1102 жыл бұрын
I am a very young programmer and Kyle will always be my favorite programming KZbinr out there.
@shwethalok18610 ай бұрын
Guess my age
@CaliburPANDAs2 жыл бұрын
guy explained in 11 mins what took hours for my instructor. thank you 🙏
@jthomasaurus5 жыл бұрын
I’ve commented before, basically the same thing, but I REALLY enjoy your style of teaching. To the point, understandable examples, and clean code. This is by far the best video on Promises I’ve seen yet. Thank you!
@WebDevSimplified5 жыл бұрын
Thank you so much!
@mostinho72 жыл бұрын
Done thanks Promise is itself declared as new Promise((resolve, reject) => {//promise logic here}), takes a function as parameter, that function takes two functions/callbacks resolve and reject. The logic of the promise itself is defined in the callback that the promise was initialized with, which calls the resolve or reject callback. The caller of the promise can call .then(theParamResolveGot => { //the resolve logic}) passing it a callback which takes the same parameter that is passed to the resolve callback inside the Promise. Calling .catch(theParamRejectGot => {//logic to handle rejected promise}) Can then chain callback after callback by chaining .then which avoids callback hell
@jamesonvparker5 жыл бұрын
Dude.... that was a CLEAN tutorial. I can easily go back and watch it a few times to practice it. Writing a promise to console log 1,2 and 3, in order, asynchronously , was an interview question. I watched your video to re-learn the syntax. Thanks!
@WebDevSimplified5 жыл бұрын
I'm really glad the video was able to help!
@divinemasculine37302 жыл бұрын
hey man did you get the job?
@jamesonvparker2 жыл бұрын
@@divinemasculine3730 not only did I get that job. I have just recently accepted an offer from the company behind this very platform 😉.
@divinemasculine37302 жыл бұрын
@@jamesonvparker wow youtube??? so inpirational! can you give me tips? im from canada going through a FULL STACK coding bootcamp
@jamesonvparker2 жыл бұрын
@@divinemasculine3730 find me on linked in. I’ll talk there
@filintodelgado2 жыл бұрын
Finally I understand this, not afraid of promises anymore. Always keep your promise guys.
@threeone60125 жыл бұрын
The last 11 minutes and 30 seconds of my life was well spent. Great upload!
@WebDevSimplified5 жыл бұрын
Thank you so much! I'm glad you enjoyed it.
@samrad65085 жыл бұрын
are you dead ?
@luke45025 жыл бұрын
RIP
@skiddykakaka94235 жыл бұрын
rest in rip
@Al_Gonzo4 жыл бұрын
The guy liked this 11:31 long video so much that his profile picture is now his new favorite numbers, "3" and "1".
@reach93184 жыл бұрын
I have zero understanding of Javascript Promises , but after watching your video, I am confident on how to use it now.
@Fatalitron5 жыл бұрын
I learned more about promises from this ten-minute video than I did from an entire fifteen week web dev course in school. Can't thank you enough!
@WebDevSimplified5 жыл бұрын
I'm really glad I could help!
@GMIX5 жыл бұрын
Web deb course in school? I could only dream about this. The only thing i've learnt from school is how to open ms word.
@duran_codes3 жыл бұрын
You sir are an f-ing genius at explaining things. I bought your JavaScript beginner videos on your website. I have gone through codecademy, team tree house, JavaScript book and you are by far the best person to teach. 😀
@WebDevSimplified3 жыл бұрын
Thank you so much for the support! I am glad I am able to help.
@DJDELLANNIE3 жыл бұрын
I read the entire MDN section on Promises and 11 mins convert me into a promise pro thank you sir
@miaroelants93004 жыл бұрын
there are many webdev videos on youtube but what i like so much about yours is how calm you bring every thing (there is a general hyperactivity trend on youtube i think). videos are very clear as well. thanks so much :)
@galinmalchev17392 жыл бұрын
I started learning development with udemy courses. It all went great and I've been through 2 interviews so far. In one of the interviews they told me to learn the theory behind promises and it turned out that I've used it many times but that video really helped me solidify the knowledge and understand the actual logic behind them. I always seek your short and straight-to-the point tutorials for similar cases. Thank you.
@PrakharAgarwal-we3nh2 ай бұрын
Hey! what all udemy courses did you do ? I did web dev course recently, now I am diving deeper into it and focusing on building projects so I can gain a bit of confidence. What would be your advice on what I should be learning next and in what manner !!!
@taco5643 жыл бұрын
Just want you to know every time I look into learning new things I look for your videos first. You are the best teacher I've ever had
@techuchiha65105 жыл бұрын
This channel is massively underrated 🙌🏻
@WebDevSimplified5 жыл бұрын
Thanks! I think 4,000 is a pretty huge number already, but I am excited to see what the future holds.
@techuchiha65104 жыл бұрын
See this is what I was talking about!!! Way to go buddy!!!
@vmusatov3 жыл бұрын
@@udeleted almost doubled 3 months later. Race for a million. I’m a new sub
@dinesh22084 жыл бұрын
Within 11 minutes, you have teach the toughest part of javaScript very easily and resolved your promise. Thanks a lot.
@andrewc952 жыл бұрын
Bro, been trying to understand this for an hour. Your video was the first where it all clicked. Thanks!
@davidvideauortega2875 жыл бұрын
After watching crashcourses, long, 45 min videos and articles about promises, I can say this is probably the only video that actually made me understand promises. Wonderfully explained! Thank you so much, you have a new subscriber :) And also... The amount of dislikes says it all.
@WebDevSimplified5 жыл бұрын
Thank you! I am really glad I could help.
@LFFebro5 жыл бұрын
You took the same path as myself. I have been taking a marathon of Async Javascript to grasp on for once and for all.
@janithillangakoon69625 жыл бұрын
same here
@animeshsharma73325 жыл бұрын
Even the official documentation by MDN sucked!!
@faizaanannoor3954 жыл бұрын
@@animeshsharma7332 true that!
@manimirzaaa2 жыл бұрын
I am an experienced developer but haven't used promises till now, there was piece of code I was trying to make sense from another developer and he as using promises. This video really help me in this regard. Thanks
@macroxela4 жыл бұрын
I've been binge watching your videos and they are wonderful. Not too long and not too short while delivering the content clearly. Keep up the good work!!
@MarinaViramontes-f2m Жыл бұрын
You just saved me man. I've been reading my course material over and over, watching their videos for days and I wasn't computing a thing. You're doing the Lord's work, Bravo!
@kvncnls4 жыл бұрын
Wow, this made much more sense than the udemy course I'm taking right now.
@omar-elgammal2 жыл бұрын
The best video on promises I came across !
@harishkandikatla97915 жыл бұрын
I watched 4-5 other videos about callbacks, promises before watching this video, was not satisfied. I am very much satisfied with your explanation in just 10 mins. Great 👍
@WebDevSimplified5 жыл бұрын
Thank you! I try to make all my videos as concise and informational as possible. My goal is the be the channel with the most learning per minute of content.
@chris94kennedy4 жыл бұрын
@@WebDevSimplified Yeah think we can all agree you're pulling that one off. Congrats on your engagement also, huge
@Laz3rs3 жыл бұрын
Bro I've been working on this promise shit for probably the past 15 hours and your video literally did it for me can't thank you enough dude. You also look identical to my buddy irl so this was an experience to say the least.
@jandeswart13784 жыл бұрын
Awesome! I have been struggling with this subject for a whole week. I read every resource I could find on the internet. This video finally made me understand promises in a matter of 5 minutes.
@miguelormita2 жыл бұрын
Thank you so much! Sometimes, if I find topics complicated, I feel like I can't breath and take lots and lots of break. lol. But this tutorial makes it easy to understand the topic.
@Zephyr-tg9hu4 жыл бұрын
I really went down the rabbit hole with this one... Was initially learning about CPU hyperthreading and got confused between concurrency, parallelism, and sync and async tasks. Learning that introduced me to asynchronous code, which finally led me here. I don't even know JS lol. Really good video! I found this quite interesting.
@rohansharma48443 жыл бұрын
Seriously man u really are web dev sinplified. I understand what u teach while going to bed .amazing teacher u are sir.
@georgecraciun-vasilache39215 жыл бұрын
You definitely kept your promise about the video. Good work!
@WebDevSimplified5 жыл бұрын
Thanks! I'm glad you enjoyed it
@mahmodsamir51102 жыл бұрын
We all have to appreciate your effort for making this simple
@mumblepie53674 жыл бұрын
Also the .then can take two functions as arguments. The first one being done on resolve and the second one for reject. .catch is the same thing as .then(null, reject)
@DamianDemasi3 жыл бұрын
.catch is not exaclty the same, becasue you can use different a "reject" for every .then, and use a common .catch at the end of the chain to catch any unhandled error.
@footballarena65624 жыл бұрын
This tutorial was like revisiting form basics to learn to pro. I read some articles about Promises and I sort of knew what this was about. But the way he gave the example, this just got stuck in my mind. thanks man
@LFFebro5 жыл бұрын
Yeah. This is the best video from my Async JS marathon. Superb, right-to-the-point and practical explanations. You did, pal. One more subscriber. Keep up the good work!
@orincywhytedesigns2 жыл бұрын
Three days ive spent reading, but one youtube video RESOLVED my feelings about promises.
@suchetasarkar72992 жыл бұрын
I am learning a lot from you . Your videos are always to the point . As a self taught programmer, this channel is a gem . Thank you so much : )
@helvosthecreator192011 ай бұрын
So how did your self taught programmer journey go? Asking for a friend 😂
@wtr1098 Жыл бұрын
This one is the simpliest one best one. Took hours in codecademy but this man made it in 10 minutes... Thanks...
@jordirhoden3005 жыл бұрын
Dude, your tutorials are amazing. Thanks for everything you teach us. Greetings from Costa Rica
@WebDevSimplified5 жыл бұрын
Thank you! It always amazes me how many people from all over the world have seen one of my videos.
@christianmaoro59003 жыл бұрын
Excellent job! A good example to explain all we need to know about it in a few minutes. No gimmicks, no blabla. Please keep going!
@uhN0id5 жыл бұрын
Fantastic explanation! My only feedback is to increase the font size in your editor for those of us watching on mobile (and I'm sure desktop would benefit) when doing these smaller examples. Would be a lot easier to read.
@adityaghosh6170 Жыл бұрын
Probably the best video on KZbin that explains promises in such a lucid fashion. Liked, commented, subscribed and shared as well. Keep up the good work man.
@rmewse36165 жыл бұрын
This is amazing! Thank you so much 😊. You explained this perfectly. I have been trying to learn this for weeks and I’ve been failing but I just learned it in 10 minutes! I completely understand this now, thank you! YOU HAVE A NEW SUBSCRIBER 😄😄
@WebDevSimplified5 жыл бұрын
Thank you so much! I am really glad I could help, and I hope my other videos are just as helpful.
@rmewse36165 жыл бұрын
Web Dev Simplified thank you
@ChrisWidner4 жыл бұрын
Spent 2 hours yesterday trying to figure this out. 7 minutes into your video it suddenly makes sense. Thanks for making a great video.
@Samuel.Collier5 жыл бұрын
"...and that cats are better than me" 🤣 Thanks for your help
@WebDevSimplified5 жыл бұрын
You're welcome! I'm glad I could help.
@magpinybo75242 жыл бұрын
It has taken me years to understand promises but your videos came in handy, I couldn't be any more grateful. Thanks a bunch
@smoovewitit3 жыл бұрын
How do you speak so flawlessly without pauses or ticks, all while typing out code with very few mistakes? Was this all one take? This shouldn't be possible
@cezartorescu5 ай бұрын
Smart people talk like this.
@miladevs6 ай бұрын
Great explanation of promises, Kyle! Using Promise.all and Promise.race really helps in managing multiple asynchronous operations efficiently. For those looking to write cleaner and more maintainable code, promises are a game-changer compared to traditional callbacks. Thanks for breaking it down so clearly!
@johnchase90545 жыл бұрын
The promise code for the first example gave me a “Promise {}” when a = 2. It gave me the correct result when a = 3. Ran straight and with localhost. Both were the same, thoughts?
@WebDevSimplified5 жыл бұрын
It sounds like your promise is never calling resolve or reject. You might want to check to make sure that your if logic is correctly setup so that either resolve or reject are always called inside your promise.
@techhousemedia87273 жыл бұрын
Promise has three states which are; 1. Pending, 2. fulfilled and 3. reject. when you defined a promise in a function, that function remains in a pending state untill you run the code and now result in a certain condition base on your logic, that is when the function will enter into being fulfilled or rejected.
@FaceMaskHenry3 жыл бұрын
you can try "Promise(**).then(**).then(**)". Means try to see in second "then"
@dnegithemaster2 жыл бұрын
It is undoubtedly the BEST EVER Video on Javascript Promises
@mhn23visual4 жыл бұрын
i seriously watched so many fucking videos on that topic and never wrapped my head around it... you took 10 minutes and now i feel comfortable to play around with it.. thank you.
@v4runs5 жыл бұрын
That feeling as a Java developer to see statements ending without semi-colon...
@WebDevSimplified5 жыл бұрын
It is a great feeling.
@DutchRatedGamers5 жыл бұрын
@@WebDevSimplified While I like it, I consider it a bad practise whether it's allowed or not. But I find JS rather messed up anyway. -- Don't attack me on it though, I use it when needed (Which is currently using NodeJS + Electron).
@jojobobo18153 жыл бұрын
i started with the full stack course but have digressed 4 videos now in order to catch my knowledge up. thank you for referencing these videos that contain the requisite knowledge i didnt even know i was looking for!
@esofialo233 жыл бұрын
Thank you so much for your videos! You have a great talent for teaching :D I wish college teachers were like this, mine would only read their PPT in class :(
@alejandrotorres-py4wz4 жыл бұрын
You are an excellent teacher. And %99.9 of people can't explain how to make toast in a simple manner either
@alexdorrington5 жыл бұрын
So like then ==> runs for resolve and catch ===> runs for reject
@aishwaryam10524 жыл бұрын
Best video on promises. I have seen so many videos but none of them made sense to me except yours. Thank u
@kshitijsharma21212 жыл бұрын
Why do all coding tutorials have these comments like 'super simple explanantion' "best video ever" ...no matter how bad the explanation was. It will always be a mystery to me
@fmaciel22 жыл бұрын
Man, you are one of the best instructors I had the pleasure to watch teaching. Your videos worth more than tenths of hours of paid courses. Thank you a lot and greetings from Brazil!
@RoshanKrSoni5 жыл бұрын
Dislikers thinking that button is for download this 😂
@karthikmatreddy70954 жыл бұрын
😂
@vladimirzizic68744 жыл бұрын
It`s been such a challenge to understand Promise, callbacks, tasks, schedules, async/await ugh!! This explanation was the clearest one so far! Thank you !!
@maksymkloka50162 жыл бұрын
Ok. Two things: 1) slow down about 2-3x. 2). As someone that is being forced to take JavaScrip for a CS major, I can't help but notice how terribly JavaScrip is compared to other programming languages... literally feels like a house made of scraps ... there just isn't any clear consistency or common sense built into this language ... it's all just a bunch of strung together libraries and weird syntax that was build over whatever was there before ... everything seems to be based on word of mouth and experience rather than the structured and consistent approach used by other programming languages. I thought Python was terrible, but JavaScrip takes it to the next level of confusion. Somehow the claim is that this makes things faster and easier, but all I see is a bunch of unnecessary complexity that could be simplified by going back to the basics.
@ITSplit Жыл бұрын
You are so right about this!
@karthickselvam8606 Жыл бұрын
Dude Javascript is a language that was built for browsers initially.Today the many versions of JS introduced new syntax which is confusing but there is a reason behind the weird things of JS. Its cause of 2 things they are doing at the same time, one is they don't want to break the code written a long time ago another is they are making development easy for the devs by implementing new features and syntaxes..Javascript should have a backward compatibility always.
@Henry_Red11 ай бұрын
Bro, what are you talking about? I had to put the video in 1.25x because it was too slow.
@nikamanvelidze7 ай бұрын
Honestly I'm addicted to your videos, so simply explained. THANK YOU A LOT!!!!!
@BobKeys-le9ih9 ай бұрын
The first promise video that actually helped
@rahulchhillar97362 жыл бұрын
bro so simple and so straight and so much to digest in single video. very much appreciated.
@MdARahim4 жыл бұрын
When I need to learn something about web, I first look into this channel. He never disappointed me!
@capability-snob2 жыл бұрын
Thank you for using the same sort of expressive wording used in the E documentation - promises really were intended as a modelling tool at human level. Like, "once you're done with it Bob, please send the result to Carol and notify Accounts Payable". As a contrast, picture a group of people standing deadlocked around the kitchen, one holding the sugar, another holding the milk, until the end of time. Promises make for a more human concurrency management tool, that has nicer concurrency properties than CSP.
@hectorg3624 жыл бұрын
Was reading the MDN article over Promises and half way through I was already falling sleepy. decided to come here instead and understood it lol. Thanks m8
@beverlyHillsAgent3 жыл бұрын
Thanks, Kyle. You make the best JavaScript tutorials on KZbin. Not one of the best, but the best.
@syntapy97972 жыл бұрын
2 min in and it made more sense than the 5 or so written tutorials I found online. Thanks. Your promise has been resolved
@opeyemioyelesi50882 жыл бұрын
This is by far the best video I have watched explaining promises in Javascript. Thanks @Web Dev Simplified
@czhablog95592 жыл бұрын
Oh my god, the best explanation on every concept for web development
@turtleboy3628 Жыл бұрын
I have spent so long trying to fully grasp node promises and this video really really explained it such an understandable way, you have earned yourself a new subscriber! :)
@briantole5389 Жыл бұрын
You are the best teacher out there teaching coding and you have resolved your promise from earlier in the video
@lowqualityvideos99784 жыл бұрын
definitly te best javascript promise tutorial, i was having a hard time to learn promises until i watch this video
@fokspoks2 жыл бұрын
You completely resolve your promise and got success in your ideas of teaching viewers about Promises. Thanks.
@jimmykite83434 жыл бұрын
Definitely lives up to his promise on making the best 'promises' video.
@darkins70424 жыл бұрын
I myself do not really understand English, and before this video I watched a lot of videos in Russian on the subject of Promises but I didn’t understand anything, but from your video everything is clear to the last detail! I'm surprised thank you
@DeepakBhandarideerock3 жыл бұрын
This channel needs way more credibility and subscribers than it does at the moment. Best web dev channel in whole of youtube. Thanks Kyle.
@cloned813 жыл бұрын
Og God, I had to reread that a couple of times to understand how "message" or "error" were getting their info from. Got it, levelled up!
@abhishektrivedi1377 Жыл бұрын
One of the best JavaScript Learning Channel On KZbin !!
@johnatteo8222 жыл бұрын
Just wanted to say great Job! This is the best explanation on Promises that I've came across. Kyle You Are Resolved!
@AdityaSharan8114 жыл бұрын
okay !!this is something which defines this youtube channel extremely simplified thanks buddy 😊
@Сергей-ф7о7с2 жыл бұрын
I think it's the best video about promises that I've ever seen
@祝溢泽3 жыл бұрын
I was comfused by promises for a long time , this video really help a lot .simple and clear .Thanks man
@abhinavtyagi72334 жыл бұрын
My journey of understanding promises ends here. Thanks.
@romanmed90352 жыл бұрын
this is the only channel I watch at normal speed. I watch other channels at 2 speeds.
@pritulkhan13954 жыл бұрын
You have fulfilled the promise of conveying the tutorial of "Promises" in a very promising manner. I have liked, comment and subscribed :D
@yabool2001 Жыл бұрын
The best video on Promise I’ve found yet.
@sandeepdharwar2474 жыл бұрын
One of the best quick and simple explanation of concepts! thanks @ Web Dev Simplified. Promise resolved!
@tylerferrington188211 ай бұрын
Thank you! This helped! I still think I need to watch this video 10 times to make it stick! I always come straight here for help, much appreciated :)
@TafooEdits2 жыл бұрын
You really simplified my javascript learning journey thank you kyle, Hats off for you 🎩