Ruby - Hashes
What will be the output of the following Ruby code?
h = {a: 1, b: 2, c: 3}
h.keysh = {a: 1, b: 2, c: 3}
h.keyskeys method on hashkeys method returns an array of all keys in the hash. Here keys are symbols :a, :b, :c.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions