Note that as I go through the exercises, I am testing out "what if" scenarios. This exercise has two parts, asking for ('real OR world') and then also ('real AND world').
Alternatives:
Using ('real or world') works.
Using ('real' OR 'world') does not work. (errors)
Using ('real | world') works. (pipe substituted for 'or')
Using ('real and world') does not work. (same results as using 'or')
Also, I see that using toLower() or toUpper() are not needed in this context.
Would you please explain the logic behind each of these? Just looking for a deeper understanding.