constructor  Boolean  instance propertyS2C Home  « Globals « Boolean « constructor

Description

Returns a reference to the function that created the prototype.

Syntax

Signature Description
anBoolean.constructorReturns a reference to the function that created the prototype.

Parameters

None.

Examples

The code below displays prototype function of Boolean.



var anEmptyBoolean = [];
alert('Boolean constructor is ' + anEmptyBoolean.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