DekGenius.com
Team LiB   Previous Section   Next Section
Number.valueOf( ) return the primitive number value

Availability

JavaScript 1.1; JScript 2.0, ECMAScript v1

Inherits from/Overrides

Overrides Object.valueOf( )

Synopsis

number.valueOf( )

Returns

The primitive number value of this Number object. It is rarely necessary to call this method explicitly.

Throws

TypeError

If this method is invoked on an object that is not a Number.

See Also

Object.valueOf( )

    Team LiB   Previous Section   Next Section