Click here to navigate the course.

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
Data Structures

Hashes

Good! Now let's create a hash. Feel free to use either hash literal notation or Hash.new.

prices = { "apple" => 0.52, "banana" => 0.23, "kiwi" => 1.42 } sounds = Hash.new sounds["dog"] = "woof" sounds["cat"] = "meow"
Report a Bug
If you see a bug or any other issue with this page, please report it here.