Learn Ruby
Hash
9.8
Lesson

Add to hash using key directly

We saw that we can use merge! to add a new hash to an existing hash.

We can also add to hash using key directly. Here is an example.