Properties of the array object

An instance of a JavaScript Array object is able to use various properties and methods of the Array object.
You access the properties by using the array name followed by the property or method name you want to use.

The table below lists the properties of the Array object with a short description of each.

PropertyDescription
constructorRefers to the constructor function used to create an instance of an object.
indexUsed when an array is created by a regular expression match.
inputUsed when an array is created by a regular expression match.
lengthContains a numeric value equal to the number of elements in an array.
prototypeAllows the addition of properties and methods to abjects such as the JavaScript array object.

Leave a Reply