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.



Let’s start simple: write an .each loop that iterates through words and just prints out each word it finds.

Take this course for free

Mini Info Outline Icon
By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.

Or sign up using:

Already have an account?