Ruby - Hashes
What will be the output of this Ruby code?
h = { name: 'Eve', 'age' => 28 }
puts h[:name]
puts h['age']h = { name: 'Eve', 'age' => 28 }
puts h[:name]
puts h['age']15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions