Ruby - Enumerable and Collection Processing
What will this Ruby code print?
words = ['cat', 'dog', 'bird']
words.each { |w| puts w.upcase }words = ['cat', 'dog', 'bird']
words.each { |w| puts w.upcase }each iteration and method callupcase converts it to uppercase.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions