Ruby - Hashes
What will this Ruby code print?
h = {a: 1, b: 2}
h.each { |k, v| puts "#{k}:#{v}" }h = {a: 1, b: 2}
h.each { |k, v| puts "#{k}:#{v}" }k and v.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions