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