The Boolean object is used to convert a non-Boolean value to a Boolean value (true or false).
For a tutorial about the Boolean object, read our JavaScript Boolean Object tutorial.
| Property | Description |
|---|---|
| constructor | Returns the function that created the Boolean object's prototype |
| prototype | Allows you to add properties and methods to a Boolean object |
| Method | Description |
|---|---|
| toString() | Converts a Boolean value to a string, and returns the result |
| valueOf() | Returns the primitive value of a Boolean object |
Your message has been sent to W3Schools.