This documentation is archived and is not being maintained.
valueOf Method
Visual Studio 2010
Returns the primitive value of the specified object.
function valueOf() : Object
The valueOf method is defined differently for each intrinsic JScript object.
Object | Return Value |
|---|---|
Array | 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.
Show: