JavaScript length property
Definition and Usage
length property sets or returns the number of elements in the array.
Browser Support
All major browsers support length property.
grammar
Setting the number of array:
array.length= number
Return the length of an array:
array.length
technical details
return value: | A number that represents the number of elements in the array of objects. |
---|---|
JavaScript version: | 1.1 |
JavaScript array of objects