@Zuaa

Array.length isn't calculated each time you access it, only when the array changes.

@abhinavreddyboddu6351

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

@alagurajmurugan

It's not reduce any performance

@alagurajmurugan

This not make any changes in performance