From http://www.w3schools.com (Copyright Refsnes Data)
JavaScript Array Object
The length property sets or returns the number of elements in an array.
| arrayObject.length |
ExampleIn this example we will show how to use the length property to both return and set the length of an array:
The output of the code above will be:
Try it yourself » |
JavaScript Array Object
From http://www.w3schools.com (Copyright Refsnes Data)