"promises allow you to do something as soon as an asynchronous method or action does finish instead of immediately returning the final value the asynchronous method returns a promise to supply the value at some point in the future" this point clears it all! damn so clear explanation
@ts89602 жыл бұрын
makes 0 sense dude
@ACantarela27 жыл бұрын
I'm loving these JS videos, even more Beau faces in the thumbnails haha
@eliweber25423 жыл бұрын
You can’t use a word within its own definition...
@KreativeHogwartsLegacyGUIDES5 жыл бұрын
the more complex the idea, the harder it is to understand the beau teaches java videos. earlier videos with easy concepts were some of the best videos ive seen on the worst internet, and im not exaggerating.
@herolivesnu3 жыл бұрын
let doWhat=new Promise((resolve,reject)=>{ let multiply=(x,y)=>x*y add=(a,b)=>a+b arr=[1,2,3]; if(arr.length>1) resolve(add((multiply(5,6),10))); reject("sorry there is a mistake") } ) doWhat.then(result=>console.log(result)) doWhat.catch(err=>console.log(err)) /* I want to log 40 on the console with the above code, pls help by telling me what is wrong with the code*/
@ekkehardehrenstein1806 жыл бұрын
Those promise example videos lack creativity and as a consequence don't make it very clear.
@hikiyo137 жыл бұрын
I love those tutorials so much
@kaypakaipa85596 жыл бұрын
Great explanation was so confused watching other videos. The Thumbnails are killer tho😂
@sweeball7 жыл бұрын
Thanks for getting me here. This vid. has been very helpful!
@ts89602 жыл бұрын
terrible explanation
@alainleclerc45233 жыл бұрын
very confusing...
@pradipta93453 жыл бұрын
Beautiful ❤️
@novanoskillz41513 жыл бұрын
Love your explanations… but i think you chose the most confusing example possible to explain promises.
@dannyiskandar6 жыл бұрын
thank you this really help clarify this concept ..promises ..promises ..ohh how can they be ..yeah :)
@sasayaki6 жыл бұрын
I came to KZbin to try and understand promises better after my class sort of confused me. I'm trying to get as many different explanations as I can to see if one of them works for me. This was a good start on the syntax so thanks!
@abdelrahman23486 жыл бұрын
so if it's resolved then will executed and if not resolved or rejected catch will execute ? is that its logic ?
@denoise_7 жыл бұрын
These thumbnails are turning into a Javascript horror movie.
@kaypakaipa85596 жыл бұрын
Illicit Industries 😂😂i tried to stay away from this video as much i could soon as i saw the thumbnail, but seems every other video left even more confused on wat promises are. Funny enough this guy explained well enough to get the concept.
@tasoulman6 жыл бұрын
I think it is easier to user the fetch API. Am I wrong ?
@aaronargottelopez34884 жыл бұрын
DAnke
@ahmadabdolsaheb7 жыл бұрын
I'm here for the faces :)
@BeauCarnes7 жыл бұрын
😄 😁 😆 😴 🙄 🤔😋 😜 😝
@oolumee5 жыл бұрын
When will be the time I can finally use my code not for good.
@Anbualex7 жыл бұрын
OMG this may have made my JS game work better. Awesome!!
@anag21254 жыл бұрын
Love all your videos. Thank u so much!!! :D
@thenecroyeti17 жыл бұрын
The ordering of this series is a little off. Teaching switch statements then promises?! I bit of a leap there...
@BeauCarnes7 жыл бұрын
That's just to keep things interesting for me. Eventually I hope to have a complete JavaScript series. Check this forum for the plan and to offer suggestions: forum.freecodecamp.com/t/topic-suggestions-for-beau-teaches-javascript-on-fcc-youtube-channel/89344/3
@randomdeveloper64567 жыл бұрын
Beau Carnes May I use your videos as reference to start a portuguese (my Native Lang) teaching channel ? I like the idea of learn teaching.
@worldbosspf17 жыл бұрын
thanks man I now understand this.
@hpineroo7 жыл бұрын
This can be a way that several web services uses for 'undo' buttons work?
@theluanvuong58867 жыл бұрын
So, guys, when are the React and SASS courses come out ?
@BeauCarnes7 жыл бұрын
I am planning on doing React. No plans for SASS as of yet since right now I'm just focussing on JavaScript.
@andrewkiminhwan7 жыл бұрын
Im a fan Beau! and your slight boston accent?
@BeauCarnes7 жыл бұрын
Actually I've lived in Michigan most my life. Some people have said I have an accent, though. I'm not sure where it is from. 😄
@DevanSisson7 жыл бұрын
Beau Carnes same problem I have. Apparently I have an accent and I've lived in Utah my whole life.
@naruto54377 жыл бұрын
this was great...
@jarrettklink40977 жыл бұрын
I guess I'm a tiny bit confused. Where would you use this? As in, what situation?
@grandpowr7 жыл бұрын
When you need to work on Asynchronous type of situations (like the final project Simon's Game). They're actually very useful because you can control with .then() how your code will work and can catch an error as well. If you still have issues then read the book "You Don't Know Javascript" they explain Promises and in which situations you use it.