how to know the length of an array in javascript code example Example: length of an array javascript array.length