Learn Ruby
Array
4.7
Lesson

length to find the count of items in the array

Array has a method called length. It is used to get the number of elements in an array.

In this example let’s print number of items I like.