convert array of object to string javascript code example
Example 1: js array with objects to string
var array = new Array();
var string;
array[0] = {key: value};
array[1] = {key1: value1};
string = JSON.stringify(array);
Example 2: convert array object to string javascript
var ar = ['a', 'b', 'c', 'd', 'e', 'f', 'g'];
console.log( ar.join('') );
console.log( ar.join(' : ') );
console.log( ar.join('-') );
console.log( ar.join('|') );
Example 3: array to string javascript
<array>.join(<splitting character(s)>);