I can understand apply function in Javascript. But I am unable to get how doesMath.max.apply(null,[arrayArg]) work.
The definition says apply calls the function for the giventhisvalue. Here, null is passed as the thisArg. Isn't the native Array constructor passed as the param as thisArg, as Array constructor doesn't has the function to find the maximum/minimum number from given argument?.
