check number of elements in array javascript code example Example: length of an array javascript array.length