Ruby - String Operations
Identify the error in this Ruby code snippet:
text = "hello world"
text.sub('world')text = "hello world"
text.sub('world')sub requires two arguments: pattern and replacement string.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions