Its not a function object. If at least one of arguments cannot be converted to a number the result is NaN. The apply and spread methods had a limitation of 65536 which came from the limit of the maximum number of arguments.
The result is -Infinity if no arguments are passed and the result is NaN if at least one of the arguments cannot be converted to a number.
Getting the maximum element of an array. Mathmax function in JavaScript HTML Javascript Web Development Front End Technology The max function of the Math object accepts multiple numbers and returns the largest numbers among them. GetMaxOfArray 1 2 3 is equivalent to Mathmax 1 2 3 but you can use getMaxOfArray on programmatically constructed arrays. Example of using max or.