Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Advanced Async-Await Javascript Tutorial - Why forEach Is Bad for Async Await Code

Dave Gray via YouTube

Overview

Google, IBM & Meta Certificates – 40% Off
One Coursera Plus subscription covers most Professional Certificates on Coursera.
Unlock All Certificates
This tutorial explains why forEach is unsuitable for many async/await workflows in JavaScript. It compares traditional for loops, for...of, Promise.all with map, and reduce for serialized or concurrent API requests.

Syllabus

Intro
Welcome and Intro
forEach - What's it good for?
Async fetch request example
forEach with Async Await is BAD
Alternative #1: traditional for loop
Alternative #2: for...of loop
Alternative #3: Promise.all with map
Alternative #4: A different reduce

Taught by

Dave Gray

Reviews

Start your review of Advanced Async-Await Javascript Tutorial - Why forEach Is Bad for Async Await Code

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.