The toString() method returns an array as a String.
The toString() method returns an array as a String.
The returned string uses commas as the separators between the array elements.
array.toString()
None |
---|
A String, representing the values of the array, separated by a comma
Convert an array to a string:
var myArray = ["XML", "Json", "Database", "Mango"]; myArray.toString(); console.log( myArray );