filmov
tv
JavaScript Promises -- Tutorial for Beginners

Показать описание
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?
JavaScript Promises from the series "10 Things JS Developers Should Know"
*** Announcement ***
Full JavaScript Mastery course is coming! Details at the end of the video. Sign up for Early Access here:
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...
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?
JavaScript Promises from the series "10 Things JS Developers Should Know"
*** Announcement ***
Full JavaScript Mastery course is coming! Details at the end of the video. Sign up for Early Access here:
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...
Комментарии