array ke koma daftar terpisah js

var colors = ["red", "blue", "green"];
var colorsCSV = colors.join(","); //"red,blue,green"
Grepper