How big is the performance difference between
for (var i = 0, max = array.length; i < max; i++)
and
for (var i = 0; i < array.length; i++)
How do the different browsers handle the length of an array? Does the length function of an array always count all objects insinde the array or is there a variable inside the array object (or in the browser) which stored the current length of the array? Does some browsers optimize the code?