2015-12-24 14:55:51 -08:00

5 lines
87 B
JavaScript

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