Please Help 😅 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
24th Jun 2017, 12:44 PM
Ekansh
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
24th Jun 2017, 12:49 PM
Siddharth Saraf
+ 3
The downcase! method doesn't return anything, so there's a Nil object in wrd. You should use downcase instead.
24th Jun 2017, 12:47 PM
merkrafter