DEV Community

Discussion on: I Use For Loops Almost Always In Javascript

Collapse
 
beggars profile image
Dwayne Charrington

Definitely nothing wrong with using for loops. I do recommend knowing and learning the functional methods filter, map and reduce but you don't have to use them in most cases.

It's sad that JS has got to a point where a staple of every language (a for loop) has become something many in the community argue against and seemingly for no good reason.

Collapse
 
kimsean profile image
thedevkim • Edited

well around 2-3 months ago i always use for loop almost all the time, but then since I started using reactjs, I use now filter and map only if don't need a break statement