JavaScript array.constructor Property

JavaScript array.constructor Property

The Array object has an array.constructor property. The array.constructor property gives back an array’s constructor function that created the array object. The array.constructor property inherits from the prototype of the array object. Syntax of array.constructor Property in JavaScript constructor = arrayObj.constructor Parameters The JavaScript array.constructor does not take any parameter because it is not a function but a property. Return The array.constructor property returns the reference to the function which created the array object.

Tags

JavaScript Array JavaScript Math JavaScript Boolean JavaScript Date JavaScript Number JavaScript String JavaScript API

Most Popular Articles

Recently Updated Articles