Converting between strings and symbols is a snap.
:sasquatch.to_s # ==> "sasquatch" "sasquatch".to_sym # ==> :sasquatch
.to_sym methods are what you’re looking for!
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 variable,
symbols, and store an empty array in it.
.eachto iterate over the
- For each
sto a symbol and use
.pushto add that new symbol to
- Print the
Check the hint for a refresher on