There was an error while loading. Please reload this page.
1 parent adcce2f commit e65c9a1Copy full SHA for e65c9a1
Recursive/Factorial.js
@@ -16,7 +16,7 @@ const factorial = (n) => {
16
if ((n % 1) !== 0) {
17
throw new RangeError('Not a Whole Number')
18
}
19
-
+
20
if (n === 0) {
21
return 1
22
0 commit comments