The following code declares a number with decimals and without decimals.
var v1=100;//number without decimals.
var pi=3.174;//number with decimals.
Hence the following code displays Infinity and -Infinty respectively.
Example: var age=new Number(45);
Creating a number as an object is not recommended since object is slow.