Reason: For every iteration of the loop, the following condition is checked ( I < arr.length) i.e you are calculating the value of arr. Length once for every iteration as opposed to computing arr. Length only once and using the variable to compare
It's not reduce any performance
This not make any changes in performance
@Zuaa