change array to string in js code example
Example 1: js array to string
var myArray = ['no','u'];
var myString = myArray.toString();
Example 2: array to string js
array.join("").toString()
Example 3: array to string javascript
var cars = ["Volvo", "BMW", "Audi", "Chevrolet"];
console.log(cars.toString());
//Output: Volvo,BMW,Audi,Chevrolet
Example 4: how to convert array converted to string back to array javasccript
var array = '[[1, 2, 3], [4, 5, 6]]';
JSON.parse(array);