- Represents a key-value mapping
- Contains zero or more key/value pairs
- Can only access values by referencing keys
How do you get "Gabe" out of the following hash?
hash = { "name" => "Gabe" }How do you get "There" out of the following hash?
hash = { "hello" => "There" }How do you get { "name" => "Gabe" } out of the following hash?
hash = { "hello" => { "name" => "Gabe" } }How do you get "Gabe" out of the following hash?
hash = { "hello" => { "name" => "Gabe" } }