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 :
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 |
Advertisements
Posted on: November 5, 2008 If you enjoyed this post then why not add us on Google+? Add us to your Circles
Share this Tutorial Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms. Connect Me on Google+
Discuss: JavaScript array properties
Post your Comment