Returns a string value consisting of all the elements of an array concatenated together and separated by the specified separator character.
arrayObj.join(separator)
If any element of the array is undefined or null, it is treated as an empty string.
The following example illustrates the use of the join method.
function JoinDemo(){
var a, b;
a = new Array(0,1,2,3,4);
b = a.join(
"-");
return(b);
}
Array Object Methods | String Object
Applies To: Array Object