Creating long arrays can become
cumbersome, where you have to type
multiple comma and quotation marks.
Ruby gives us simpler ways to create
arrays. For creating an array of
strings, use %w
:
This looks much cleaner. However, if there is a whitespace in the word, then we need to put a \
to escape the whitespace.