JavaScript concept with a cup of coffee and a laptop

Array Methods & Properties

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.

Happy Coding!

Clay Hess

Share this post

Share on facebook
Share on google
Share on twitter
Share on linkedin
Share on pinterest
Share on print
Share on email
Skip to content