statements =  ["kittens", "puppies", "piglets"].each do |animal| statement = "I love " + animal # add the statement to the statements array here. ??? end puts statements
Given an array, Ruby offers two different ways to add items,
array << x
Use the method suggested in the instructions and lesson text.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.