Learn Ruby
Array
4.9
Lesson

length and to_s to print count of items I like

Let’s print count of the number of items I like in a sentence.

Above code is failing because we can’t concatenate a string and an integer. To fix the problem we need to use to_s to convert the number into a string.