Tuesday, January 15, 2013

Codecademy Sample Solution: String Interpolation


favorite_things = ["Ruby", "espresso", "candy"]

puts "A few of my favorite things:"

favorite_things.each do |thing|
  puts "I love #{thing}!"
end

No comments:

Post a Comment