I understand your code it makes sense to me.
Im still trying to understand this code:
function largestOfFour(arr) {
return arr.map(Function.apply.bind(Math.max, null));
}
Is the
(Math.max, null)
Parameters being passed to the apply or bind method? I thought the bind method only accepts one parameter which is the object for which “this” will get its value.
Thanks,
Andrej