how to return number of items in an array javascript code example Example: length of an array javascript array.length