Ruby - String Operations
Find the problem in this Ruby code:
text = "abc abc abc"
result = text.gsub('abc')
puts resulttext = "abc abc abc"
result = text.gsub('abc')
puts resultgsub requires two arguments: pattern and replacement string.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions