Ruby - String Operations
Find the bug in this Ruby code snippet:
data = "1|2|3|4"
array = data.split('|')
result = array.join(', ')
puts resultdata = "1|2|3|4"
array = data.split('|')
result = array.join(', ')
puts result15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions