У нас вы можете посмотреть бесплатно JavaScript Promises & Async Await in One Video или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
https://truthseekers.io/javascript-pr... In this video we're going to learn what promises are, how promises work, and how the order of execution works in a JavaScript Promise. Then we'll cover async await which makes promises easier to work with. Promises are used to "promise" that something will be done at a later date. The promise will always either succeed or fail. When the promise has finished, and is no longer "pending", the task that is supposed to run on completion will be stored in the queue. When JavaScript has nothing left to do, it'll check the queue for tasks, and see the promise is finished, and run the block of code. The "resolve" and "reject" functions allow you to pass in a success or error message or object, which is passed to the success or failure callback functions. Then you can pass the success and failure callback functions into a .then which is attached to the promise. Async and Await allows you to pause the execution of a function until the promise has completed by sticking the "await" keyword in front of the function, but the code will not block. The rest of the code will continue to run, and when the promise resolves, then the function will continue where it left off. This will all be explained in detail in the JavaScript Promises video.