2.1.18 [ECMA-262-1999] Section 9.8, ToString

V0029:

The operator ToString converts its argument to a value of type String according to the following table:

Input Type

Result

Undefined

"undefined"

Null

"null"

Boolean

If the argument is true, then the result is "true".

If the argument is false, then the result is "false".

Number

See note below.

String

Return the input argument (no conversion)

__SafeArray__

__Apply the following steps:__

1. __Call ToObject(input argument).__

2. __Call ToString(Result(1)).__

3. __Return Result(2).__

__VarDate__

__Return a String with contents representing the VarDate value, using the same representation format as that which is used by Date.prototype.toString ([ECMA-262-1999] section 15.9.5.2).__

Object

Apply the following steps:

1. Call ToPrimitive(input argument, hint String).

2. Call ToString(Result(1)).

3. Return Result(2).