Well done! Let’s do a little review of string methods. Remember, you call a method by using the . operator, like this: "string".method.



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.

Take this course for free

Mini Info Outline Icon
By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.

Or sign up using:

Already have an account?