Javascript Reference
Categories: Array

javascript Array length

@March 15, 2008, 1:22 a.m.
length Firefox/Netscape/NN 3 IE 4 ECMA 1  

Read/Write  

Provides a count of the number of numerically-indexed entries stored in the array. If the constructor function used to create the array specified a preliminary length, the length property reflects that amount, even if data does not occupy every slot.

 
Example
 
for (var i = 0; i < myArray.length; i++) {
    ...
}
 
Value

Integer.

lipitor for sale online <a href="https://lipiws.top/">lipitor online order</a> buy lipitor cheap
Unidrd - 10 months

Powered by Linode.