Ruby - Hashes
Find the error in this Ruby code snippet:
h = {x: 10, y: 20}
h[:z] = 30
puts h.zh = {x: 10, y: 20}
h[:z] = 30
puts h.zputs h.z is invalid; correct is puts h[:z].15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions