JavaScript » Number » valueOf

Syntax:
object.valueOf()
 
NOTE:
 
The Number object also inherits the watch and unwatch methods from the Object object.

This method, which is usually called by Javascript behind the scenes, returns the primitive value of a Number object as a number data type. This method overrides the Object.valueOf method.