weeks1to2/array/alphabet/al.rb
2017-08-14 11:34:33 +10:00

9 lines
289 B
Ruby

alphabet = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n","o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"]
firstLetter = alphabet[0]
alphabet.push ("i know the best words!")
# '<<' = '.push'
alphabet.each do |letter|
puts "This letter is #{letter}"
end