JavaScript Promises In 10 Minutes

Toggle fullscreen Fullscreen button

Sharing buttons:

hello everybody kyle here from webdev

simplified in today's video we're going

to be talking about promises in

javascript which look incredibly

difficult but are much more simple than

they actually appeared so let's get

started now

to get started let's talk about the idea

of a promise before we get into the

actual syntax of it a promise in

JavaScript is just like a promise in

real life what you do is you commit to

something by saying I promise to do

something for example I promise to make

the best video on promise as I can and

then that promise either has two results

either that promise has completed it is

resolved or that promise is failed and

it is rejected so if I give you the best

video ever on promises then I would

resolve my promise to do so but if I