title: Removing commas from javascript array
body: <p>I have 3 strings "a","b","c" in javascript array "testarray".</p>
  
  <pre><code>var testarray=new Array("a","b","c");
  </code></pre>
  
  <p>and then I am printing the value of testarray using javascript alert box.</p>
  
  <pre><code>alert(testarray);
  </code></pre>
  
  <p>The result will be like  a,b,c</p>
  
  <p>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 <code>a%b%c</code> or <code>a%$b%$c</code></p>