Answer not accepted


I need help. I don't understand why this answer is not accepted. Thks!

pets =
pets = {
"type" => "terry",
:name => "joe",
:age => 4

puts pets["type"]
puts pets[:name]
puts pets[:age]


Hi inside your hash you wrote :name and :age instead of "name" and "age" inside" " and you have to also change the puts of name and age and they should be like that ..

puts pets["name"]
puts pets["age"]


But isn't that the correct syntax to use? i.e. puts pets[:objectname]