Well done! Let’s do a little review of string methods. Remember, you call a method by using the
. operator, like this:
Declare a variable
name and set it equal to a string containing your name. Call
.downcase on your name to make it all lower case, call
.reverse on your lowercase name to make it backwards, then call
.upcase on your backwards name to make it ALL CAPS.
In Ruby, you can do this two ways: each method call on a separate line, or you can chain them together, like this:
puts the method call if you want to see the result.