JavaScript Boolean Constructor Property

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] }

Try it yourself

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