Async Programming With JavaScript - Callbacks, Promises and Async / Await

preview_player
Показать описание
Introduction To Asynchronous Programming in JavaScript

In general JavaScript is running code in a non-blocking way. This means that code which is is taking some time to finish (like accessing an API, reading content from the local file system etc.) is being executed in the background and in parallel the code execution is continued. This behaviour is being described by term asynchronous programming.

Because JavaScript is executed in that non-blocking way you have to take additional measures to deal with that code if you need to have the result available before further code is being executed.

In this video you'll learn about callbacks, promises and handling promises by using async / await.

---------------------

Musik:
Night Owl by Broke For Free is licensed under a Creative Commons Attribution License.
Рекомендации по теме
Комментарии
Автор

Excellent video and it helped me understand something I've struggled with for quite some time now. Thank you!

TheDorac
Автор

Thanks for this, well explained. I had a quick question, when I write out your async_await code my editor tells me that the await keyword has no effect, and if I remove it, the code functions. Is this a recent update to Javascript, or does the await keyword serve another purpose here that I'm not seeing? Thanks!

WaiSanLee
Автор

Well explained and have upvoted already.

iamphoenix
Автор

Well, the how is ok, but the why is not so ok... Or sometimes less words and a picture is better... Or in good old german... "Ein Bild sagt mehr als 1000 Worte!"... Tipp: Youtuber "The Coding Train"... Have a look... ;-)

AlexSchiessl