Boolean.toString() (Method)

Returns a string primitive version of an object.

Availability:

ECMAScript edition - 2
JavaScript - 1.1
JScript - 3.0
Internet Explorer - 4.0
Netscape - 3.0
Netscape Enterprise Server - 2.0
Opera - 3.0
Property/method value type:String primitive
JavaScript syntax:-myBoolean.toString()

The value of the object is converted to a string that represents its Boolean value.

See also:Boolean.prototype, Boolean.toSource(), Cast operator, toString()

Cross-references:

ECMA 262 edition 2 - section - 15.6.4.2

ECMA 262 edition 3 - section - 15.6.4.2