2014-11-01 19:34:16 +11:00

6 lines
99 B
JavaScript

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