convert array to single string javascript code example
Example 1: javascript array to comma separated string
var colors = ["red", "blue", "green"];
var colorsCSV = colors.join(","); //"red,blue,green"
Example 2: array to string javascript
<array>.join(<splitting character(s)>);
Example 3: js array join
['h', 'e', 'y'].join('')
// hey