JavaScript & jQuery Tutorials

JS Home Right Arrow JS Reference Right Arrow Boolean Right Arrow constructor

constructor  Boolean  instance property

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



  

go to home page Homepage go to top of page Top