Adds all the elements of an array into a string, separated by the specified separator string.
join(separator);
separator
A string used to separate one element of the array from the next in the resulting string. If omitted, the array elements are separated with a comma.
A string.
[1, 2, 3].join()
"1,2,3"
[1, 2, 3].join(', ')
"1, 2, 3"
["tea", "coffee", "juice"].join(' or ')
"tea or coffee or juice"