I have the following (simplified):
const eeveesheroes = [ "Pinsir", "001", "2"];
x = eeveesheroes[0];
But I want to be able to do this:
const eeveesheroes = [ "Pinsir", "001", "2"];
var selectedserie = "eeveesheroes";
x = selectedserie[0];
Maybe the question has been asked before here but I just dont know how to phrase the question, so the search results are getting me nowhere. How do I replace an arrayname with a variable string which contains the name of the array?