Description
The constructor property returns the function that created the object's prototype.
This property has the form:
array.constructor
Return Value
A Function object that created the array object's prototype
Examples
The following example shows the basic use of this tag.
<script>
var cols = [ "Red", "Green", "Blue" ];
document.write(cols.constructor);
</script>
This produces the following result:
function Array() { [native code] }
Browser Support
Firefox | IE | Chrome | Opera | Safari |
---|---|---|---|---|