JavaScript Promises -- Tutorial for Beginners
Автор: ColorCode
Загружено: 4 окт. 2022 г.
Просмотров: 151 348 просмотров
The JavaScript Tool I'm using to demonstrate:
https://runjs.app/ColorCode
ColorCode Etsy Merchandise store:
https://www.etsy.com/shop/ColorCodeStore
JavaScript Promises and all their glory! This is episode 12 in a 10 part series I’m calling 10 things Javascript Developers Should Know But Probably Don't.
JavaScript Promises
Different phases of a Promise
Chaining Promises
Handling errors using Promises
Benefits over callbacks and callback hell
What do they all mean and why do you need them?
Full playlist here: • 20 Things JavaScript Developers Shoul...
JavaScript Promises from the series "10 Things JS Developers Should Know"
by ColorCode.io, Sina Jazayeri
** Announcement **
Full JavaScript Mastery course is coming! Details at the end of the video. Sign up for Early Access here:
https://www.colorcode.io/js-mastery
0:00:00 Intro
0:01:48 Async vs. Sync
0:03:29 The problem with Async
0:07:00 Convert to Callback
0:08:00 Convert to Promises
0:10:32 Different phases of a Promise
0:11:47 How to use a Promise
0:14:47 Why do we like Promises?
0:16:30 Chaining
0:20:59 Benefits of Promises over Callbacks
0:22:50 Error handling, REJECT and .catch()
0:30:23 .finally()
0:31:50 Real world example with fetch()
0:34:30 Summary
0:35:13 Next...

Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: