function findSmallestNumber(numbers){
return Math.min.apply(Math, numbers);
}
This code sets the context to be the Math
object. However, this is not required because the min() and max() methods will still function properly regardless of the specified context.
How does it successfully execute even when passed as undefined
?
Why is there no need to explicitly pass the Math
object?