The toString method

The toString() method combines the elements of an array into a single string with a comma as a separator character.

var Fruits = new Array ("pears", "mangoes" , "bananas" , "apples");
Fruits.toString();
document.write(Fruits);

Leave a Reply