title: initialization a javascript array using a variable
body: <p>I try to initialize a array in JS using a variable.</p>
  
  <pre><code>var list= "0,1";
  var a = new Array(list);
  </code></pre>
  
  <p>As a output I want a[0] to be 0 and a[1] to be 1 </p>
  
  <p>Any other way is to parse list and put all the value to a one by one.</p>
  
  <p>Any way to do it in one line</p>
  
  <p>I want integer Array </p>