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