Sun Chili!Soft ASP Sun Chili!Soft
ASP Sun Microsystems

 

JScript Object valueOf Method

Returns the primitive value of the specified object.

Syntax: JScript Object valueOf Method

object.valueOf( )

Arguments: JScript Object valueOf Method

object

Any JScript object.

Remarks: JScript Object valueOf Method

The valueOf method is defined differently for each intrinsic JScript object.

Object

Return Value

Array

The elements of the array are converted into strings, and the strings are concatenated together, separated by commas.

Boolean

The Boolean value.

Date

The stored time value in milliseconds since midnight, January 1, 1970 UTC.

Function

The function itself.

Number

The numeric value.

Object

The object itself. This is the default.

String

The string value.

The Math object does not have a valueOf property.

Copyright 2002 Sun Microsystems, Inc. All rights reserved. Legal Notice.