Array.length

length

Description

Array.length

Return values

integer.

Examples

Example #1 – length example
var array = [1, 2, 3, 4]; console.log(array.length); // 4

External references