In
var values = [1,2,3,4,5];
var max = Math.max.apply(Math, values);
Why do we have to pass in Math
as the this
object? I have a hard time understanding this.
Is there anything specifically that apply
needs this
(Math
) for in its execution?