From http://www.w3schools.com (Copyright Refsnes Data)
JavaScript Array Object
The toString() method converts an array to a string and returns the result.
| arrayObject.toString() |
Note: The elements in the array will be separated with commas.
ExampleIn this example we will create an array and convert it to a string:
The output of the code above will be:
Try it yourself » |
JavaScript Array Object
From http://www.w3schools.com (Copyright Refsnes Data)