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?
1)
for(var i=0;i<max;i++){
//code
}
2)
for(var i=0;i<max;++i){
//code
}