re: How to create range in Javascript VIEW POST

FULL DISCUSSION
 

The for loop is by far the easiest to read and also by far the most efficient. Your last example was literally more than 15 times slower than the for loop. Far too many developers these days are trying to get all fancy when the simple solution is much better.

code of conduct - report abuse