Ruby - String Operations
What is the output of this Ruby code?
words = "red green blue".split(' ')
result = words.join('-')
puts resultwords = "red green blue".split(' ')
result = words.join('-')
puts result15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions