Merge pull request #23 from bchalman/patch-1
Fix return value of recursiveFactorial function
This commit is contained in:
commit
ee8f672bdd
|
@ -33,7 +33,7 @@ function recursiveFactorial(n) {
|
|||
if (n===0){
|
||||
return 1;
|
||||
}
|
||||
return n * factorial (n-1);
|
||||
return n * recursiveFactorial (n-1);
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
|
|
Loading…
Reference in New Issue