Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Java Javascript-array JavaScript array properties

Related Tutorials


 
 

Share on Google+Share on Google+

JavaScript array properties

Advertisement
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.

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
Advertisements

If you enjoyed this post then why not add us on Google+? Add us to your Circles



Liked it!  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.

Posted on: November 5, 2008

Related Tutorials

Discuss: JavaScript array properties  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments:0
DMCA.com