2015-10-05 16:37:37 +01:00

5 lines
89 B
JavaScript

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