Drag the edges to resize the window.

In Projects, you can keep track of your progress as you go throught the tasks. Check each item as you complete it!

Code Editor
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.

Report a Bug
If you see a bug or any other issue with this page, please report it here.