←
^
→
JavaScript
Array Length
The
length
property is always one larger than the largest element number in the array:
var a = new Array();
a.length;
var a = new Array(10);
a.length;
var a = [4,5];
a.length;
var a = [4,5];
a[10] = 3;
a.length;
José M. Vidal
.
37 of 65