An array comes with properties and methods we can use in our programming to accomplish tasks with our array data.
There are times we wish to know how many items are in our array. We can do this with the length property. For example…
let baseballCards = [ ‘Aaron’, ‘Ruth’, ‘Wagner’ ];
console.log( baseballCards.length );
The aforementioned code will output the number 3 for the number of values within the array.