Section 24.21. Boolean.toString( ): convert a boolean value to a string


24.21. Boolean.toString( ): convert a boolean value to a string

ECMAScript v1: Overrides Object.toString( )

24.21.1. Synopsis

b.toString( )

24.21.1.1. Returns

The string "true" or "false", depending on the value of the primitive boolean value or Boolean object b.

24.21.1.2. Throws

TypeError

If this method is invoked on an object that is not a Boolean.




JavaScript. The Definitive Guide
JavaScript: The Definitive Guide
ISBN: 0596101996
EAN: 2147483647
Year: 2004
Pages: 767

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net