2018-01-09 15:36:42 +01:00

4 lines
86 B
JavaScript

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