|
|
The JavaScript Boolean Object represents either of the given values : “True” or “False”. If Value parameter failed to give a value i.e empty string (“”) or 0, -0, null, false, NaN, or undefined then the initial value of the Object will be treated as false.
Syntax:
Below are the list of the properties of Boolean object −
Property |
Description |
It Returns a reference to the Boolean function that created the object. |
|
The prototype property allows one to add the properties and methods to an object. |
In the upcoming sections, we will have a few examples which explains the properties of Boolean object.
Method |
Description |
This method returns a string containing the source of the Boolean object; one can use this string to create an equivalent object. |
|
This method returns a string of either "true" or "false" depending upon the value of the object. |
|
This method returns the primitive value of the Boolean object. |
|
|
Javascript Objects Related Tutorials |
|
---|---|
CSS3 Tutorial | HTML 5 Tutorial |
PHP Tutorial | AJAX Tutorial |
CSS Advanced Tutorial | Javascript Advanced Tutorial |
CakePHP Tutorial | CodeIgniter Tutorial |
JSON (JavaScript Object Notation) Tutorial |
All rights reserved © 2020 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.