We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a12f311 commit e51671eCopy full SHA for e51671e
08_calculator/solution/calculator-solution.js
@@ -19,7 +19,6 @@ const power = function (a, b) {
19
};
20
21
const factorial = function (n) {
22
- if (n === 0) return 1;
23
let product = 1;
24
for (let i = n; i > 0; i--) {
25
product *= i;
0 commit comments