L
len
Is there some difference in the code I'm not seeing or is one better
than the other:
languages = ['English', 'German', 'Ruby']
languages.each do |lang|
puts 'I love ' + lang + '!'
puts 'Don\'t you?'
end
languages.each { |lang|
puts 'I love ' + lang + '!'
puts "Don't you?"}
Len Sumnler
than the other:
languages = ['English', 'German', 'Ruby']
languages.each do |lang|
puts 'I love ' + lang + '!'
puts 'Don\'t you?'
end
languages.each { |lang|
puts 'I love ' + lang + '!'
puts "Don't you?"}
Len Sumnler