JavaScript Boolean Object
The Boolean object is used to
convert a non-Boolean value to a Boolean value (true or false).
Examples
Check Boolean value
Check if a Boolean object is true or false.
Complete Boolean Object Reference
For a complete reference of all the properties and methods that can be used with
the Boolean object, go to our
complete Boolean object reference.
The reference contains a brief description and examples of use for each
property and method!
Boolean Object
The Boolean object is an object wrapper for a Boolean value.
The Boolean object is used to
convert a non-Boolean value to a Boolean value (true or false).
We define a Boolean object with the new keyword. The following code line
defines a Boolean object called myBoolean:
var myBoolean=new Boolean();
|
Note: If the Boolean object has no initial value or if it is 0, -0, null, "", false,
undefined,
or NaN, the object is set to false. Otherwise it is true (even with the string
"false")!
All the following lines of code create Boolean objects with an initial value
of false:
var myBoolean=new Boolean();
var myBoolean=new Boolean(0);
var myBoolean=new Boolean(null);
var myBoolean=new Boolean("");
var myBoolean=new Boolean(false);
var myBoolean=new Boolean(NaN);
|
And all the following lines of code create Boolean objects with an initial value
of true:
var myBoolean=new Boolean(true);
var myBoolean=new Boolean("true");
var myBoolean=new Boolean("false");
var myBoolean=new Boolean("Richard");
|
 |
 |
 |
 |
|
The Ektron Intranet
lets you do everything you need to do on your corporate intranet and everything you want to do... all with just one application.
What can you do with the Ektron Intranet? |
 |
Navigate through content, documents, assets, colleagues and workgroups quickly and intuitively with enterprise search |
 |
Communicate with friends and colleagues with forums, message boards and corporate blogging using the new Social Networking Platform |

|
Utilize the extensive out-of-the box features or customize your site through Ektron CMS400.NET's open architecture |
 |
Promote collaboration in your organization through project workspaces where others can efficiently find information and work together |
 |
Author/edit content, manage navigation, menus, audit trails, workflow and approvals with the best in breed Content Management |
|
|
|
|
See why there are 20,000+ Ektron integrations worldwide.
|
|
 |
TAKE THE VIDEO TOUR |
 |
or download a FREE TRIAL today. |
|