Examveda

What is the output of ["apple", "banana", "cherry"].join(", ") in Ruby?

A. "apple, banana, cherry"

B. ["apple", "banana", "cherry"]

C. "applebanana cherry"

D. ["apple, banana, cherry"]

Answer: Option A


Join The Discussion

Related Questions on Arrays, Hashes and Strings in Ruby