This commit is contained in:
Fran Encabo 2024-07-17 10:42:29 +09:00 committed by GitHub
commit eb6836bf59
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5,7 +5,7 @@
export default function factorial(number) {
let result = 1;
for (let i = 2; i <= number; i += 1) {
for (let i = 2; i <= number; i ++) {
result *= i;
}