No. There is no difference in execution time. The difference in the two code fragments is when I increase the number.
for(i = 0; i < max; i++) { console.log(i); }
In this first example, the results will be given: 0,1,2,3, ..., max-1
for(i = 0; i < max; ++i) { console.log(i); }
This second example will give the results: 1,2,3, ..., max
i ++ increments the value after the operation. ++ I increment the value before the operation.
There is no difference in performance other than one that is less than iterations done in ++ i, because the increment is performed before the first operation
source share