title: Convert string with commas to array
body: <p>How can I convert a string to a JavaScript array?</p>
  <p>Look at the code:</p>
  <pre><code>var string = &quot;0,1&quot;;
  var array = [string];
  alert(array[0]);
  </code></pre>
  <p>In this case <code>alert</code> shows <code>0,1</code>. If it where an array, it would show <code>0</code>. And if <code>alert(array[1])</code> is called, it should pop-up <code>1</code></p>
  <p>Is there any chance to convert such string into a JavaScript array?</p>