How To Use Async Await in JavaScript (async await explained)

preview_player
Показать описание
(We're free online community, meet other makers!)

#javascript #js #vscode #programming #coding #webdevelopment #example #code This is a quick javascript async await example tutorial I put together for those who want to know how asyncronous calls work in JS at its basic. Remember async functions always return the value as a promise 🙂 even if you don't specify one as a return value.

0:01 Simple async await function example
0:20 How to use async in JavaScript (and return value from a promise)
0:35 returning a new Promise() from async function
0:56 using promise accept() function
1:18 using await keyword
1:42 cats and dogs example
2:38 executing two async functions
Рекомендации по теме
Комментарии
Автор

Finally someone who explains things well. Thank you. I understood a lot more than through these 15 min. videos on async await.

jakobqn
Автор

Not gonna lie, I watched too many videos regarding async await and all of them were so complex to understand. You explained it in a beginner friendly way. Thanks a lot

ankita_