Skip to content

Instantly share code, notes, and snippets.

@niedbalski
Created October 9, 2012 19:06
Show Gist options
  • Save niedbalski/3860752 to your computer and use it in GitHub Desktop.
Save niedbalski/3860752 to your computer and use it in GitHub Desktop.
Javascript self recursion on anonymous functions
(function(n) { return (!(n>1))? 1 : arguments.callee(n-1)*n; })(0xb4dc0d3);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment