/

HTML / CSS / JavaScript Tutorial

JavaScript Array property: length

[this page | pdf | back links]

The length property (for a JavaScript array) returns the length of the array. An empty array has length 0.

 

It has the following syntax:

 

array.length

 


NAVIGATION LINKS
Contents | Prev | Next | JavaScript Arrays


Desktop view | Switch to Mobile