Answer the question
In order to leave comments, you need to log in
Why is the recursive function in node.js calling 500?
There is a module that has a factorial calculation function
MMINF.prototype.factorial = function (n) {
return (n != 1) ? n * this.factorial(n - 1) : 1;
};
RangeError: Maximum call stack size exceeded
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question