Learn Ruby
Hash
9.6
Lesson

merge! to add more data to hash

We can add another key and value pair to an existing hash using merge! method. Notice that this method has a ! at the end.

Using merge! changes the original hash. The new key and values are pushed to the original hash.