var num = new Number(number);
Example:
var num = new Number(10);
document.write(num);
document.write(num*num);
document.write(new Number('Hi'));
document.write(new Number());
Output:
10 100 NaN 0When you give the non numeric value as a argument to the Number() constructor that will return NaN.