Name
length — NN 3 IE J2 ECMA 1
Synopsis
Read/Write
A count of the number of 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.
Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.