hash1 uses a string as a key.
hash2 and hash3 use symbols as keys.
hash2 and hash3 have the same content, but hash3 </ strong> is the simplest way to write.
When used as a hash key, the symbol is recommended because it runs faster </ strong>.
Recommended Posts