8000 Merge pull request #23 from bchalman/patch-1 · GeraldCO/javascript-exercises@ee8f672 · GitHub
[go: up one dir, main page]

Skip to content

Commit ee8f672

Browse files
authored
Merge pull request TheOdinProject#23 from bchalman/patch-1
Fix return value of recursiveFactorial function
2 parents b14ac4e + b030e9a commit ee8f672

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

calculator/calculator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function recursiveFactorial(n) {
3333
if (n===0){
3434
return 1;
3535
}
36-
return n * factorial (n-1);
36+
return n * recursiveFactorial (n-1);
3737
}
3838

3939
module.exports = {

0 commit comments

Comments
 (0)
0