javas acripts get number of elements in array code example Example: length of an array javascript array.length