Code Editor
Symbols pop up in a lot of places in Ruby, but they're primarily used either as hash keys or for referencing method names. (We'll see how symbols can reference methods in a later lesson.)
sounds = {
:cat => "meow",
:dog => "woof",
:computer => 10010110,
}
Symbols make good hash keys for a few reasons: