Glossary Term
Boolean() constructor
The Boolean() constructor creates Boolean objects. When called as a function, it returns primitive values of type Boolean.
The value passed as the first parameter is converted to a boolean value. If the value is omitted or is 0, -0, 0n, null, false, NaN, undefined, or the empty string (“”), then the object has an initial value of false. All other values, including any object, an empty array ([]), or the string “false”, create an object with an initial value of true.
Note: When the non-standard property document.all is used as an argument for this constructor, the result is a Boolean object with the value false. This property is legacy and non-standard and should not be used.
Syntax example: new Boolean(value)
Term Connections
Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.
Loading term connections…
