While Loops vs. For Loops in JavaScript? [closed]
These are the reasons I would choose one over the other: For-loop Syntax: for( int i = 0; i < 10; i++) { //Some code here } I would use a for loop for the reason that I may KNOW the NUMBER OF ITERATIONS I need to do and I have an INCREMENTING variable which … Read more