Ruby - Hashes
Given the code below, what will be the output?
h = { :city => 'Paris', 'country' => 'France' }
puts h[:country]
puts h['city']h = { :city => 'Paris', 'country' => 'France' }
puts h[:country]
puts h['city']15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions