Ruby - Hashes
Which of the following is the correct way to create a Ruby hash with a symbol key named
:color and a string value "blue"?:color and a string value "blue"?key: value or :key => value. The first option uses the newer syntax.color: "blue".15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions