Skip to content

Instantly share code, notes, and snippets.

@RobinMalfait
Last active December 23, 2015 04:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RobinMalfait/6578103 to your computer and use it in GitHub Desktop.
Save RobinMalfait/6578103 to your computer and use it in GitHub Desktop.
JavaScript: Faculteit
function faculteit (getal) {
var resultaat = 1;
for (var i = 1; i <= getal; i++) {
resultaat = resultaat * i;
};
return resultaat;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment