New course! Every coder should learn Generative AI!
Try a free lesson+ 7
Please Help 😅
2 Answers
+ 5
Remove downcase and see or gets.downcase.chomp will also work or just remove ! to see it working fine.
One more thing, ! is used to do the methods on the spot
+ 3
The downcase! method doesn't return anything, so there's a Nil object in wrd.
You should use downcase instead.