Number.prototype.fact = function() { if (this == 0) return 1 else return this * (this - 1).fact() }; (5).fact()