JavaScript Promises In 90 Seconds #JavaScriptJanuary

preview_player
Показать описание
Watch the entire #JavaScriptJanuary series from the beginning!

The Promise object represents the eventual completion or failure of an asynchronous operation, and its resulting value. It’s like a placeholder for a value that you are waiting on.

A Promise can be in one of three states: Pending, Fulfilled, or Rejected.

When the promise is pending, JavaScript continues code execution. This way the promise, or value that you are waiting for, does not cause your program to freeze.

Eventually the promise is either fulfilled or rejected and JavaScript goes back to that code block to execute the appropriate operation.

We use “.then” to look for the promise to enter the Fulfilled state. “.then” accepts a function that receives the resolved value from the resolve method.

After that we can use “.catch” to look for the promise to enter the Rejected state. “.catch” also accepts a function that receives any errors from our reject method.

I'll be releasing a new video every day in January! Stay tuned..
_____________________________________

📚 Learn to CODE in just a FEW months here:
_____________________________________

🛠️ Tools I use:

_____________________________________

💖 Show support!
_____________________________________

Watch Next:
_____________________________________

Connect With Me:
_____________________________________

** Affiliate Disclaimer: Some of the above links may be affiliate links, which may generate me a sales commission at no additional cost to you.

#JavaScriptJanuary #31Days31Videos #codeSTACKr
Рекомендации по теме
Комментарии
Автор

Thanks for all of the support! Stay tuned for a new video every day in January!!

Watch the entire #JavaScriptJanuary series from the beginning!

📚 My Favorite Web Design Books 📚
Web Design with HTML, CSS, JavaScript and jQuery Set by Jon Duckett (paid link)

codeSTACKr
Автор

This is the most worth it channel i ever subscribed to

jacksonnadar
Автор

It would be cool to have a 90-second video first and then next week have an in-depth video on the subject.

erikT
Автор

I first like your videos and then starts watching it..because your videos are amazing as always..

rajeshsahu
Автор

please help me. i got a timer that keeps counting up. its goes like this @ when it hits @ and the seconds are below 0 that it will add a 0 before the minute. what is wrong with my code?


sek = Math.floor(time%60);

min = Math.floor(time/60);







if(min<10)

{

"0" + min +":" + sek;

}

else

{

min +":" + sek;

}

if(sek<10)

{

"0" + min +":0" + sek;

}

rosegold-beats