Creates number objects:
>>> var n = new Number(101); >>> typeof n
"object"
>>> n.valueOf();
101
Number
objects are not primitive objects, but if you use a number method on a primitive number, the primitive will be converted to a Number
object behind the scenes and the code will work.
>>> var n = 123; >>> typeof n;
"number"
>>> n.toString()
"123"