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