Which one would you vote for : Normal for loop or forEach loop? If you have any benchmark, add that too.
When it comes to performance considerations i check jsperf.com. In case of for ... vs. forEach there are a lot of comparisons avaliable, like this one.
I always use for loop unless there is any special requirement.
Joel Jensen
Loves all things tech
Although, browser may optimise both the loops, I think the good old
forloop is better in terms of performance. Check this article where you can see that the normalforloop was about 40 times faster than theforEachloop for a simple test.