I’m taking programming lessons on Code academy, and I am stuck on the
The instructions say :
We have an array of strings we’d like to later use as hash keys, but
we’d rather they be symbols.
Create a new array, symbols.
Use .each to iterate over the strings array and convert each string to a
symbol, adding those symbols to symbols.
They give you :
Add your code below!
Could someone please help me and explain to me why the code is written
the way it is?