How to Use ForEach() in JavaScript

For loops used to be my everything. Not anymore

Jamie Pittman
Better Programming
Published in
3 min readSep 12, 2020

--

Photo by Thomas Kinto on Unsplash.

I don’t know about you, but when I started learning how to write JavaScript, forEach() was not on my radar. If I needed to iterate over an array, for loops were my everything.

When I was going through my coding bootcamp several years ago, we were not being taught JavaScript array methods. I’m not…

--

--

Engineer, teacher, athlete, & master of some. Connect w/ me on Instagram: jamie_lyn_pittman & LinkedIn: https://bit.ly/34DbEtf