Latest web development tutorials

JavaScript constructor property

Javascript Array Object Reference JavaScript array of objects

Examples

Returns fruits array object function prototype created:

fruits.constructor;

Results output:

function Array() { [native code] }

try it"

Definition and Usage

constructor property returns an array of objects to create this function reference.


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support constructor property.


grammar

array .constructor

technical details

return value: A function object. This function creates an array of objects from the original.
JavaScript version: 1.1


Array Object Reference Manual JavaScript array of objects