myObject.toString() in ECMAScript 262
Returns a string representation of the object.
- Return Type
- String
Description
For most objects, returns the string "[object "+className+"]". For internal objects, returns the following:
Array- Each member of the array has
toString()called on it, and the results are joined together with commas. Equivalent tomyArray.join(). Boolean- Returns "true" for
true, "false" forfalse. Date- The format of the string value returned depends on the implementation. Often a human-readable string such as "Mon Nov 17 2003 13:56:48 GMT-0700"
Function- The format of the string value returned depends on the implementation. Often a source-code representation of the function.
Number- The number converted to a string value. (See the specific entry for
Number.toString(radix).) String- The string's value.