js array to comma 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"