Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Returns the primitive value of the specified object.
Syntax
object.valueOf( )
Remarks
The required object reference is any intrinsic JScript object.
The valueOf method is defined differently for each intrinsic JScript object.
Object |
Return Value |
---|---|
Array |
Returns the array instance. |
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 and Error objects do not have a valueOf method.
Requirements
Applies To: Array Object (Windows Scripting - JScript)| Boolean Object (Windows Scripting - JScript)| Date Object (Windows Scripting - JScript)| Function Object (Windows Scripting - JScript)| Number Object (Windows Scripting - JScript)| Object Object (Windows Scripting - JScript)| String Object (Windows Scripting - JScript)