Description
The length property sets or returns the number of elements in an array.
This property has the form:
array.length
Examples
The following example shows the basic use of this tag.
<script>
var cols = [ "Red", "Green", "Blue" ];
document.write(cols.length);
</script>
This produces the following result:
Browser Support
Firefox | IE | Chrome | Opera | Safari |
---|---|---|---|---|