Ruby - Hashes
What does the
keys method do when called on a Ruby hash?keys method do when called on a Ruby hash?keys methodkeys method extracts all keys from the hash and returns them as an array.values returns values, each iterates pairs, so only keys returns keys array.keys = keys array [OK]15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions