Learn Ruby
Hash
9.1
Lesson

Key Value Pair

Hash stores key value pair.

Key Value
USA Washington D.C.
England London
France Paris

In the hash above the key is the country name and the value is the capital of the country.