How does
Math.max.apply(null, arr);
exactly work?
Suppose
var arr = [45,25,4,65] ;
will it compare 'null' and '45' and return maximum number between two adjacent e.g. 45?
After comparing will it again compare returned number and next array number e.g. 25 and return the max number?
And how is the calculation done internally? It is the same way, I think.