Answer not accepted


#1

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

pets = Hash.new
pets = {
"type" => "terry",
:name => "joe",
:age => 4
}

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


#2

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"]

#3

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