Examveda

What method in Ruby is used to join the elements of an array into a single string?

A. join(separator)

B. concat(separator)

C. merge(separator)

D. combine(separator)

Answer: Option A


Join The Discussion

Related Questions on Arrays, Hashes and Strings in Ruby