put comma separated string in array javascript code example
Example: javascript array to comma separated string
var colors = ["red", "blue", "green"];
var colorsCSV = colors.join(","); //"red,blue,green"
var colors = ["red", "blue", "green"];
var colorsCSV = colors.join(","); //"red,blue,green"