ES6 Essentials 30: Promises

preview_player
Показать описание
In this tutorial, you'll learn about how you can use Promises in JavaScript to handle your asynchronous code.

So sometimes in JavaScript, you will have code that takes time to complete that is performed asynchronously, that is the execution of your code continues whilst waiting for the task to complete.

Normally, this would be done by using a callback or some trickery in terms of where you place your code. But with ES6 you can use the Promise object to sequence your functions.

In the video, you'll learn about using the Promise object to return a success or failure and how to handle that within your code.

#ES6 #ES6Essentials #JavaScript Channel Handle @codebubb
Рекомендации по теме