Create a new number method that returns a number's half value:
return this.valueOf() / 2;
Use the new method on a number:
var x = n.myMethod();
Definition and Usage
When constructing a property, ALL numbers will be given the property, and its value, as default.
When constructing a method, ALL numbers will have this method available.
Note: Number.prototype does not refer to a single number object, but to the Number() object itself.