Ruby: working with hashes
Example:
hash = {"key" => "value"}
A Hash is a collection of key-value pairs.
Solution:
puts hash["key"] // Outputs: value
Example: Solution:Ruby: working with hashes
A Hash is a collection of key-value pairs.
hash = {"key" => "value"}
puts hash["key"] // Outputs: value