I advise you to check out the documentation of arrays
The short answer is use Array.prototype.join
, it takes a parameter which is the glue, the string between each elements of your array into a string.
UPDATE If you don't pass a parameter to Array.prototype.join
the glue will be a comma
var array = ["a", "b", "c"];
console.log(array.join('')); // abc
// another example here
console.log(array.join('-')); // a-b-c
// and another one to show the default behaviour
console.log(array.join()); // a,b,c