Thursday, October 9, 2025
HomeLanguagesJavascriptJavaScript Boolean Constructor Property

JavaScript Boolean Constructor Property

JavaScript boolean constructor property returns the constructor function for an object. The function which is returned by this property is just the reference to this function, not a Boolean containing the function’s name The JavaScript number constructor, string constructor, and boolean constructor return function Boolean() { [native code] }, function Number() { [native code] }, and function String() { [native code] } respectively.
Syntax:  

boolean.constructor

Parameter: This method does not accept any parameter. 

Return value: It returns the function Boolean() { [native code] }.

Below are examples of the Boolean constructor property:

Example 1: 

javascript




function func() {
    let bool = false;
    let value = bool.constructor;
    console.log(value);
}
func();


Output: 

Ć’ Boolean() { [native code] }

Example 2: This example illustrates the boolean constructor property. 

Javascript




function gfg() {
    let bool = false;
    console.log(bool.constructor);
}
gfg()


Output

[Function: Boolean]

Supported Browsers: The browsers supported by JavaScript Boolean constructor Property are listed below:

  • Google Chrome 1 and above
  • Internet Explorer 3 and above
  • Mozilla Firefox 1 and above
  • Safari 1 and above
  • Opera 4 and above

We have a complete list of Javascript Boolean methods, to check those please go through the Javascript Boolean Complete Reference article.

Whether you’re preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, neveropen Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we’ve already empowered, and we’re here to do the same for you. Don’t miss out – check it out now!
RELATED ARTICLES

Most Popular

Dominic
32346 POSTS0 COMMENTS
Milvus
87 POSTS0 COMMENTS
Nango Kala
6715 POSTS0 COMMENTS
Nicole Veronica
11877 POSTS0 COMMENTS
Nokonwaba Nkukhwana
11940 POSTS0 COMMENTS
Shaida Kate Naidoo
6835 POSTS0 COMMENTS
Ted Musemwa
7095 POSTS0 COMMENTS
Thapelo Manthata
6789 POSTS0 COMMENTS
Umr Jansen
6791 POSTS0 COMMENTS