Learn
Hashes and Symbols

All Aboard the Hash Rocket!

The hash syntax you've seen so far (with the => symbol between keys and values) is sometimes nicknamed the hash rocket style.

numbers = {
  :one => 1,
  :two => "two",
  :three => 3,
}

This is because the => looks like a tiny rocket!

Let's build a hash from the ground up using symbols as keys.

Community Forums
Get help and ask questions in the Codecademy Forums
Report a Bug
If you see a bug or any other issue with this page, please report it here.