I have 3 strings "a","b","c" in javascript array "testarray".
var testarray=new Array("a","b","c");
and then I am printing the value of testarray using javascript alert box.
alert(testarray);
The result will be like a,b,c
All these strings are separated by "," character. I want to replace this "," with some other character or combination of two or more characters so that the alert box will show something like a%b%c or a%$b%$c
var testarray= ["a","b","c"]rather thanvar testarray=new Array("a","b","c");it reads easier an avoids a few potential issues.