Learn
All right! Time to break out our iterators to go through the user’s text.
letters = ['a', 'b', 'c', 'd'] letters.each do |letter| print letter end
The example above just serves as a reminder of using .each
on the letters
array.
Instructions
1.
Let’s start simple: write an .each
loop that iterates through words
and just print
s out each word it finds.
Take this course for free
By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.