title: convert array to string in javascript
body: <p>I want the text to be printed without commas.</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;Reverse&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;form name="rev"&gt;
  Enter the string : &lt;input type="text" name="str"/&gt;
  &lt;input type="button" value="click" onclick="rev1()" /&gt;&lt;br&gt;
  reverse of given string : &lt;input type="text" name="res"/&gt;
  &lt;/form&gt;
  &lt;script type="text/JavaScript"&gt;
  function rev1(){
  var a=rev.str.value;
  var b=[];
  var i,j=0;
      for(i=a.length-1;i&gt;=0;i--){
      b[j]=a[i];
      j++
  }
  //rev.res.value=b;
  alert(b);
  }
  &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>If I give the input as <code>abc</code> I am getting an output as <code>c,b,a</code>, but I want it as <code>cba</code>.</p>