Ruby - Methods
Which of the following is the correct syntax to use the bang method that reverses a string in Ruby?
object.method.reverse!, so the correct call is str.reverse!.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions