YoVDO

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

Offered By: Dave Gray via YouTube

Tags

Javascript Courses Asynchronous Programming Courses

Course Description

Overview

Discover why using forEach with async/await in JavaScript is problematic and explore superior alternatives in this advanced tutorial. Learn how to effectively handle asynchronous operations using traditional for loops, for...of loops, Promise.all() with map, and reduce. Gain insights into best practices for working with asynchronous code and improve your JavaScript skills through practical examples and explanations.

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

Related Courses

Programming Languages
University of Virginia via Udacity
Building a Basic Website
University of Massachusetts Amherst via Independent
iDESWEB, Introducción al desarrollo web
Miríadax
Web Engineering II: Developing Mobile HTML5 Apps
Technische Hochschule Mittelhessen via iversity
Web Application Architectures
University of New Mexico via Coursera