SyntaxFix
Write A Post
Hire A Developer
Questions
You can use .toString() to join an array with a comma.
.toString()
var array = ['a', 'b', 'c']; array.toString(); // result: a,b,c
Or, set the separator with array.join('; '); // result: a; b; c.
array.join('; '); // result: a; b; c