Ruby - String Operations
Examine the Ruby code below. What is the cause of the error?
sentence = "one two three"
words = sentence.split(" ")
joined = words.join("-")
puts joined.length