I read Is there a performance difference between i++ and ++i in C?:
Is there a performance difference between
i++
and++i
if the resulting value is not used?
What's the answer for JavaScript?
For example, which of the following is better?
-
for (var i = 0; i < max; i++) { // code }
-
for (var i = 0; i < max; ++i) { // code }