Number.prototype.foo = function () {alert("Hi!")}; 5.foo();