Home / Report Question

Q. What does the join method do when used with an array in Ruby?
  • A. Joins all elements into a single string
  • B. Splits the array into multiple strings
  • C. Combines two arrays
  • D. Sorts the elements of the array

Correct Answer: A