Get the expected result but it let me move on(lesson 5)


#1




I get the expected result but it returns the error "Oops, try again. Make sure you're using .gsub! to replace every 's' with 'th'.". Can anyone help pls?


print "Anything you want!"
user_input = gets.chomp
user_input.downcase!

if user_input.include? "s"
    user_input.gsub(/s/,"th")
end


#2

What exactly does it ask you to use?
What do you use?
What's the difference? Do they both have the desired effect? What is the desired effect? How can you test whether it had the desired effect?


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.