Попытка напечатать факториал числа с рекурсией, используя javascript, но не дает ожидаемого результата.
function factorialRecursion(n){
return n * factorialRecursion(n - 1);
}
factorialRecursion(6);
Uncaught RangeError: Максимальный размер стека вызовов превышен при factorialRecursion (eval at factorial (enter code here
index. html: 3),: 1: 28) при factorialRecursion (eval at factorial (index. html: 3),: 3: 13) при factorialRecursion (eval at factorial (index. html): 3),: 3: 13) при factorialRecursion (eval at factorial (index. html: 3),: 3: 13) при factorialRecursion (eval at factorial (index. html: 3),: 3: 13) при factorialRecursion (eval at factorial (index. html: 3),: 3: 13) при factorialRecursion (eval at factorial (index. html: 3),: 3: 13) при factorialRecursion (eval at factorial (index) . html: 3),: 3: 13) при factorialRecursion (eval at factorial (index. html: 3),: 3: 13) при factorialRecursion (eval at factorial (index. html: 3), : 3: 13)