constructor  Boolean  instance property JS Home  <<  JS Reference  <<  Boolean  <<  constructor

Description

Returns a reference to the function that created the prototype.

Syntax

Signature Description
Boolean.constructor;Returns a reference to the function that created the prototype.

Parameters

None.

Examples

The code below displays the prototype function of Boolean.


aBoolean = new Boolean(false)
alert('Boolean constructor is ' + aBoolean.constructor);

Press the button below to action the above code:

Related Tutorials

JavaScript Basic Tutorials - Lesson 9 - Booleans

JavaScript Basics

JavaScript Basics

JavaScript Intermediate

JavaScript Intermediate

JavaScript Advanced

JavaScript Advanced

JavaScript Reference

JavaScript Entities

Globals

Boolean

Class Properties
prototype
Instance Properties
constructor
Class Methods
None.
Instance Methods Getters
None.
Instance Methods Setters
None.

Statements

Operators