valueOf
Summary
Returns the primitive value of the specified number.
Syntax
number.valueOf()
Return Value
Returns the number.
Examples
In the following example, the instantiated number object is the same as the return value of this method.
var num = 1234;
var s = num.valueOf();
if (num === s)
document.write("same");
else
document.write("different");
// Output:
// same
Attributions
Microsoft Developer Network: Article