Ruby: working with hashes

Example:

hash = {"key" => "value"}
A Hash is a collection of key-value pairs.

Solution:

puts hash["key"]  // Outputs: value

Beginner's Guide to Ruby