Website is upgrading. We will get back soon with latest updates. Thanks for your kind support.


Suggested keywords:

What is the Javascript Call Stack and how does it get Exceeded


The problem has nothing to do with recursion. It seems the v8 and other JS engines only allow you to pass a certain number of arguments per function. Math.max throws an error because each value has to be passed as an argument (exceeding the maximum), your custom max function works because it only takes one argument (the array of numbers).

Try to run the code using Math.max in Firefox and will get an error message with a much better description:

Uncaught RangeError: too many function arguments

You should write because you love the shape of Flow and sentences and the creation of different words on a page.
Social Media

Leave a Reply


to Our Newsletter