String.toString() (Method)

Returns a string primitive version of an object.

Availability:

ECMAScript edition - 2
JavaScript - 1.3
JScript - 2.0
Internet Explorer - 4
Netscape - 4.06
Property/method value type:String primitive
JavaScript syntax:-myString.toString()

Returns the string value as a primitive rather than an object.

For a string object, the toString() method returns the same thing as the valueOf() method.

See also:String.prototype, String.valueOf(), toString()

Cross-references:

ECMA 262 edition 2 - section 15.5.4.2

ECMA 262 edition 3 - section 15.5.4.2