2014-12-22 21:36:33 +11:00

5 lines
89 B
JavaScript

var fact5 = (function fact(n) {
if (n <= 1) return 1;
return n * fact(n - 1);
})(5);