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