Just learning to code here, and I need a little help troubleshooting this code. CodeAcademy said that I did everything I need to so I can move on, but something isn't computing correctly in the display.
Lines 1 and 2 work fine. It asks me for my age; Ie reply 24. Then it says "comparison of String with 18 failed."
It looks like I've followed all of the lessons and examples to a T, yet I'm receiving errors.
print "what is your age?" answer = gets.chomp if answer > 18 print "Welcome" elsif answer == 18 print "just made it" else print "Go away..." end