Promise & async / await

Опубликовано: 02 Апрель 2026
на канале: Coding with Yalco
519
21

#javascript #promise #asynchronous

This video explains the concept of Promise, async, and await for writing asynchronous code in JavaScript. The first code shown involves three functions that perform asynchronous tasks, each of which retrieves data from a remote source, processes it, and saves the result. However, the code is complex and lacks readability. To solve this problem, the concept of Promise is introduced and the code is organized using method chaining through it. Still, it doesn't completely solve the complexity and that is where async and await are introduced. With these, it's possible to write asynchronous code in a way that is similar to synchronous code. This makes writing asynchronous code more convenient, but since it's hard to understand, it warns you that review and practice are necessary before actual use.