diff --git a/calculator/calculator.js b/calculator/calculator.js index fe548f7..f76f04c 100644 --- a/calculator/calculator.js +++ b/calculator/calculator.js @@ -21,7 +21,6 @@ function power(a, b) { } function factorial(n) { - if (n == 0) return 1; let product = 1; for (let i = n; i > 0; i--) { product *= i;