diff --git a/08_calculator/solution/calculator-solution.js b/08_calculator/solution/calculator-solution.js index 4848d86cb77..4d912008317 100644 --- a/08_calculator/solution/calculator-solution.js +++ b/08_calculator/solution/calculator-solution.js @@ -19,7 +19,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;