print list with coma and and at the end js code example
Example: javascript array to csv string
var colors = ["red", "blue", "green"];
var colorsString = colors.join(","); //"red,blue,green"
var colors = ["red", "blue", "green"];
var colorsString = colors.join(","); //"red,blue,green"