Examveda

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

Answer: Option A


Join The Discussion

Related Questions on Arrays, Hashes and Strings in Ruby