Let’s have a look at all the different ways to iterate through arrays; for, for(in), for(of) and forEach and figure out which ones you should use, and which you should NOT use.
Quokka:
Code:
👉 What’s my theme? Night Wolf [black]
👉 What’s that font? Operator Mono
👉 I’m a host on the React Round Up podcast:
👉 Don’t forget to subscribe to this channel for more updates:
👉 Discord server signup:
00:00 Introduction
00:20 The for() loop
03:50 The for(in) loop
04:56 The for(of) loop
05:40 The forEach method
07:03 for/forEach with async
11:03 Review
11:30 Outroduction
Thank you for watching this video, click the “SUBSCRIBE“ button to stay connected with this channel.
#javascript #arrays