Skip to content

Instantly share code, notes, and snippets.

@bnb
Created January 30, 2015 23:15
Show Gist options
  • Select an option

  • Save bnb/8e85d96acf96b96a3a49 to your computer and use it in GitHub Desktop.

Select an option

Save bnb/8e85d96acf96b96a3a49 to your computer and use it in GitHub Desktop.
CoderByte Challenge 2
function FirstFactorial(num) {
var finalNum = 0;
for(i = num; i < num; i--) [
finalNum *= i;
}
// code goes here
return finalNum;
}
// keep this function call here
// to see how to enter arguments in JavaScript scroll down
FirstFactorial(readline());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment