Javascript [Electronic resources] : The Definitive Guide (4th Edition)

David Flanagan

نسخه متنی -صفحه : 844/ 320
نمايش فراداده

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( )