title: Convert array to string javascript by removing commas
body: <p>I have an array A such that</p>
  <pre><code>A = [ '6', '6', '.', '5' ]
  </code></pre>
  <p>I wish to convert it into a string, such that when I console.log A, it simply returns 66.5,
  ie</p>
  <pre><code>console.log(A) 
  //expected Output
   66.5
  </code></pre>
  <p>currently, the output I am getting is</p>
  <pre><code>[ '6', '6', '.', '5' ]
  </code></pre>
  <p>When I do a to string, ie <code> console.log(A.toString()); </code>, it is giving the output <code>6,6,.,5,</code></p>
  <p>When I try to replace &quot;,&quot; with &quot;&quot;, ie <code> console.log(&quot;A = &quot;+A.toString().replace(&quot;,&quot;, &quot;&quot;)) </code>, it is giving the output <code>A = 66,.,5</code></p>
  <p>How do I make it so that it gives the output <code>A=66.5</code></p>