Thigh meanth war, 4 "if branch"


#1

Hey guys! can anyone tell me why this works

print "Thring pleathe!"
user_input = gets.chomp
user_input.downcase!

if user_input.include? "s"
    print "this has s"
end

and why it won't print out "this has s" if i call downcase
this way
user_input = gets.chomp.downcase!

thanks!


#2

I found this explanation:

https://www.codecademy.com/forum_questions/55c28085d3292ff7dd000049

Try it yourself with Spot and spot.