xxxxxxxxxx
function forloopvar(){
var stuff = [];
for (var i = 0; i <= 20; ++i) {
stuff[0] = "whatever";
stuff[1] = "happens";
stuff[i] = i;
}
return stuff;
}
console.log(forloopvar())
xxxxxxxxxx
function createVariables(){
var accounts = [];
for (var i = 0; i <= 20; ++i) {
accounts[i] = "whatever";
}
return accounts;
}