Ruby - String Operations
Which of the following is the correct syntax to join an array
["a", "b", "c"] into a string separated by dashes in Ruby?["a", "b", "c"] into a string separated by dashes in Ruby?join method is used on arrays to create a string with a separator.array.join(separator), so ["a", "b", "c"].join("-") is correct.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions