Ruby - Hashes
What is the output of this Ruby code?
h = Hash.new("missing")
h[:a] = 1
puts h[:a]
puts h[:b]h = Hash.new("missing")
h[:a] = 1
puts h[:a]
puts h[:b]15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions