how to turn array into string javascript code example
Example 1: javascript array to comma separated string
var colors = ["red", "blue", "green"];
var colorsCSV = colors.join(","); //"red,blue,green"
Example 2: js array to string
var myArray = ['no','u'];
var myString = myArray.toString();
Example 3: array to string javascript
var cars = ["Volvo", "BMW", "Audi", "Chevrolet"];
console.log(cars.toString());
//Output: Volvo,BMW,Audi,Chevrolet
Example 4: array to string javascript
<array>.join(<splitting character(s)>);