Merge pull request #23 from bchalman/patch-1

Fix return value of recursiveFactorial function
This commit is contained in:
Kevin Mulhern 2018-08-21 22:14:50 +01:00 committed by GitHub
commit ee8f672bdd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ function recursiveFactorial(n) {
if (n===0){
return 1;
}
return n * factorial (n-1);
return n * recursiveFactorial (n-1);
}
module.exports = {