. .15,520 Points
I need help, PLZ.
Using the respond_to? method, ask the string variable if it responds to the upcase method. Remember, the respond_to? method can take a string or a symbol as an argument.
string = String.new("a random string")
Manish Giri16,266 Points
You need to call the
responds_to method on the
string variable, and pass it the
upcase method name as argument.
You can call methods on variables this way -