title: Javascript: Remove white space of output array in browser console
body: <p>Is there any method to remove unnecessary spaces of output array. When I run the code there is space in between comma and integer and also integer and bracket. </p>
  
  <pre><code>var arr = [1,2,3,4,5];
  console.log(arr);
  </code></pre>
  
  <p><strong>output</strong></p>
  
  <pre><code>[ 1, 2, 3, 4, 5 ]
  </code></pre>
  
  <p><strong>desire output</strong></p>
  
  <pre><code>[1,2,3,4,5]
  </code></pre>