title: Loop to create array + loop increment?
body: <p>I wanted to create a function which gets called upon-page load and generates a graph based on what user inputs (multiple datasets, using <em>chart.js</em>).</p>
  
  <p>Decided to rely on prompt() for initial testing, but soon ran into a problem.</p>
  
  <pre><code>function defineDatasets(itt){
      for(i=0; i&lt;itt; i++){
          var dataSet+i=[]; // &lt;--- Does not result in a array called "dataSet0[], ..." etc
      }
  }
  </code></pre>
  
  <p>So my question is, if and how could this be achieved?</p>