Javascript Reference
Categories: Boolean

javascript Boolean Description

@March 15, 2008, 1:22 a.m.
BooleanFirefox/Netscape/NN 3 IE 4 ECMA 1  

  

A Boolean object represents any value that evaluates to true or false. By and large, you don't have to worry about the Boolean object because the browsers automatically create such objects for you when you assign a true or false value to a variable. Quoted versions of these values are treated only as string.

 
Properties
 
constructor prototype
 
Methods
 
toString( ) valueOf( )
 
Creating a Boolean Object
 
var myValue = new Boolean( );
var myValue = new Boolean(BooleanValue);
var myValue = BooleanValue;

Powered by Linode.