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

View file

@ -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 = {