We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f1f0211 + fb27425 commit fe92fc5Copy full SHA for fe92fc5
src/ts/others/factorial.ts
@@ -4,7 +4,7 @@ export function factorialIterative(number: number) {
4
}
5
let total = 1;
6
for (let n = number; n > 1; n--) {
7
- total = total * n;
+ total *= n;
8
9
return total;
10
0 commit comments