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