Joins the elements of an array into a string using a specified separator.
join(', ', [1, 2, 3]); // => '1, 2, 3' Copy
join(', ', [1, 2, 3]); // => '1, 2, 3'
Joins the elements of an array into a string using a specified separator.
Example