Back to Browse

JavaScript Promises -- Tutorial for Beginners

178.9K views
Oct 4, 2022
37:04

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: https://www.youtube.com/playlist?list=PL1PqvM2UQiMoGNTaxFMSK2cih633lpFKP 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...

Download

1 formats

Video Formats

360pmp490.6 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.