Async Await vs. Promises - JavaScript Tutorial for beginners
ColorCode ColorCode
74.2K subscribers
62,973 views
0

 Published On Jan 3, 2023

JavaScript Async Await, how to use them with Promises, and more importantly why?! This is episode 13 of 20 things Javascript Developers Should Know But Probably Don't.

00:00:00 Intro
00:01:04 How Promises work
00:02:18 Await!
00:04:00 Async!
00:05:55 Async/Await vs. then block
00:07:12 Real example with fetch()
00:10:58 6 important points about Async/Await
00:14:20 Error Handling with try/catch
00:20:49 Final thoughts on Async/Await
00:21:22 20,000!
00:21:45 ColorCode Podcast
00:22:22 ColorCode Merchandise Store đź‘•
00:22:38 New website
00:22:59 YouTube Shorts
00:23:12 Update on JS Mastery Course

Links mentioned in the video:

ColorCode Etsy Merchandise store:
https://www.etsy.com/shop/ColorCodeSt...

Episode 11: Asynchronous JavaScript:
   • Async JavaScript & Callback Functions...  

Episode 12: JavaScript Promises:
   • JavaScript Promises  -- Tutorial for ...  

JavaScript Promises in 1 Minute:
   • JavaScript Promises 👨🏻‍💻in 1 Minute #...  

Using Await without Async in JS Modules (MDN):
https://developer.mozilla.org/en-US/d...

Full playlist here:    • 20 Things JavaScript Developers Shoul...  

JavaScript Promises from the series "20 Things JS Developers Should Know but Probably Don't"
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

show more

Share/Embed