JavaScript Boolean Object
The JavaScript Boolean object is a wrapper object around the boolean value, which can have two values true or false.
The Boolean object contains the below properties and methods.
For more details on booleans, check JavaScript Booleans.
Boolean Properties
Here is the list of properties available in this object.
| Property | Description |
| prototype | Allows you to add new properties and methods to a Number object. |
Boolean Methods
Here is the list of methods available in this object.
| Method | Description |
| toString() | Converts a Boolean value to a string, and returns the result. |
| valueOf() | Returns the primitive value of a Boolean object. |
Overall
JavaScript Boolean object is used to store boolean values.