[an error occurred while processing this directive]

JavaScript array properties


In the JavaScript array class there are few read-only properties and few read-write properties that may be used sometimes whenever they are required. All these properties are :

  • constructor
  • index
  • input
  • length
  • prototype


These all five properties are described as follows with their syntax and description:

 Property Name Syntax Description
constructor  arrayobject.constructor The constructor property returns the function that creates the Object
index arrayobject.index It is the read only property which represent the index position of array
input arrayobject.input It is also read only property of array
length arrayobject.length It sets or returns a 32bit unsigned integer which represents the length of the array
prototype arrayobject.prototype It allows us to add properties and methods into the array


[an error occurred while processing this directive]