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