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

JavaScript valueOf() Method


String Object Reference JavaScript String Object

Definition and Usage

The valueOf() method returns the primitive value of a String object.

The primitive value is inherited by all objects descended from the String object.

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

Syntax

stringObject.valueOf()


String Object Reference JavaScript String Object

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