diff --git a/calculator/calculator.js b/calculator/calculator.js index 660e58a..6fa7dd9 100644 --- a/calculator/calculator.js +++ b/calculator/calculator.js @@ -33,7 +33,7 @@ function recursiveFactorial(n) { if (n===0){ return 1; } - return n * factorial (n-1); + return n * recursiveFactorial (n-1); } module.exports = {