DEV Community

Discussion on: Why you should stop declaring variables inside a for loop (especially in JavaScript)

Collapse
 
technicaljohn profile image
John Holcomb • Edited

Please read the other comments before you change your habit... There is more to this story, and the "good" snippet in the article is flawed.