What am I missing with this code to get it to run if I remove the comment from the end and run that as code?
When I run this with the method string commented out, it provides the expected results. When I make the last line code instead of comment, this is the error I receive: undefined method `method1’ for “Melinda”:String
Did you mean? method
I have tried to define each method as a String, and it gives me a different error. Any guidance would be great. Thanks!!!
name = “Melinda”
method1 = name.upcase
method2 = name.downcase
method3 = name.reverse