Quotes help make search much faster. Example: "Practice Makes Perfect"

Sunday, January 13, 2013

Codecademy Sample Solution: Iterating Over Hashes



matz = { "First name" => "Yukihiro",
  "Last name" => "Matsumoto",
  "Age" => 47,
  "Nationality" => "Japanese",
  "Nickname" => "Matz"
}

matz.each do |key, value|
  puts matz[key]
end

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts