Join returns a string created by converting each element of the array to a string, separated by a separator
string, if given
Without separator:
[1, 2, 3].join
# => "123"
With single character separator:
["oranges", "apples", "bananas"].join ';'
# => "oranges;apples;bananas"
With a string separator:
["Alice", "Bob", "Carol"].join ", "
# => "Alice, Bob, Carol"