constructor  Array  instance propertyS2C Home
      « Globals « Array « constructor
Description
Returns a reference to the function that created the prototype.
Syntax
| Signature | Description | 
|---|---|
anArray.constructor | Returns a reference to the function that created the prototype. | 
Parameters
None.
Examples
The code below displays prototype function of Array.
var anEmptyArray = [];
alert('Array constructor is ' + anEmptyArray.constructor);
		
Related Tutorials
JavaScript Intermediate Tutorials - Lesson 1 - Arrays