2014-11-04 08:05:09 +11:00

5 lines
89 B
JavaScript

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