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