3 ms·
No. The length property of an array returns the index of the last value, plus one. Objects are the associative arrays, but they do not have a length. Arrays ar
by sesqu 16y ago
No. The length property of an array returns the index of the last value, plus one. Objects are the associative arrays, but they do not have a length.
Arrays are numerically indexed, but if a keystring is a base-10 integer, it will get interpreted as an index. If not, the corresponding property of the array object will be returned instead.