title: Multidimensional array-document.write issues-javascript
body: <p>When i do document.write for a javascript variable,</p>
  
  <pre><code>  var abcd = [["165q",1],["160q",6],["161q",7],["162q",7],["163q",8],["164q",5]];
     document.write(abcd);
  </code></pre>
  
  <p>I get the result as </p>
  
  <pre><code>165q,1,160q,6,161q,7,162q,7,163q,8,164q,5
  </code></pre>
  
  <p>But when i pass a similar data through a variable to abcd,and when i do document.write then result is exact multidimensional array.code below</p>
  
  <pre><code>function radar_avg_one(one_chart_result) {
  var abcd = one_chart_result;
   document.write(abcd);
  document.write(one_chart_result);
  }
  </code></pre>
  
  <p>Result of
  document.write(one_chart_result);</p>
  
  <p>is <code>[["165q",1],["160q",6],["161q",7],["162q",7],["163q",8],["164q",5]]</code></p>
  
  <p>Result of
  document.write(abcd);</p>
  
  <p>is <code>[["165q",1],["160q",6],["161q",7],["162q",7],["163q",8],["164q",5]]</code></p>
  
  <p>I cant understand when its explicitly assigned why it gives a different result.Main issue is that google radar chart is working only when i hardcode values like that :(</p>