Convert method Arrays to Strings
The JavaScript method toString() converts an array to a string of (comma separated) array values.Example
var fruits = ["Banana", "Orange", "Apple", "Mango"];
document.getElementById("demo").innerHTML = fruits.toString();
No comments:
Post a Comment