JavaScript Boolean Constructor Property
- Previous Page constructor
- Next Page prototype
- Go to Parent Directory JavaScript Boolean Reference Manual
Definition and usage
constructor
Property returns the function that creates the Boolean prototype.
For JavaScript boolean values,constructor
Property returns:
function Boolean() { [native code] }
Instance
let bool = false; bool.constructor // Returns function Boolean() { [native code] }
Syntax
boolean.constructor
Technical details
Return value: | function Boolean() { [native code] } |
---|---|
JavaScript version: | ECMAScript 1 |
Browser support
All browsers fully support Boolean.constructor
:
Chrome | IE | Edge | Firefox | Safari | Opera |
---|---|---|---|---|---|
Chrome | IE | Edge | Firefox | Safari | Opera |
Support | Support | Support | Support | Support | Support |
Related Pages
Tutorial:JavaScript Boolean
Tutorial:JavaScript Data Types
Tutorial:JavaScript Object Constructor
- Previous Page constructor
- Next Page prototype
- Go to Parent Directory JavaScript Boolean Reference Manual