What Is an Array?
Finding the length of an array
You
can find out the length of an array (how many items are in it) in
exactly the same way as you find out the length (in characters) of a
string - by using the length
property. Try the following:
const shopping = ["bread", "milk", "cheese", "hummus", "noodles"]; console.log(shopping.length); // 5