From http://www.w3schools.com (Copyright Refsnes Data)

JavaScript valueOf() Method


Number Object Reference JavaScript Number Object

Definition and Usage

The valueOf() method returns the number as a string.

The string output is always equal to the number as it is represented in base 10.

The valueOf() method is usually called automatically by JavaScript behind the scenes and not explicitly in code.

Syntax

NumberObject.valueOf()


Number Object Reference JavaScript Number Object

From http://www.w3schools.com (Copyright Refsnes Data)