The toString() method can be used to convert an array into a string. It returs a result containing string and it will seperate the different elements in the array with commas. var group = ['one','two' ...