var teams = new Array();
var teamsv2 = new Array();
var num_team = 18;
for (var x = 0; x < num_team; x++) {
teams[x] = x + 1;
}
for (let tb = 0; tb < teams.length; tb++) {
teamsv2[[tb][0]] = teams[tb];
}
I created a array called teams2. For example I wanna to add some data this teams2 array.
like this;
teamsv2[[2][0]].push("stackoverflow");
teamsv2[[0][1]],
teamsv2[[1][1]]
I want to fill the second parts of the first index of the array. How can I do that?