I'm looking to access a variable by using a variable name dynamically computed at runtime. Example code:
var firstSecond = ['a', 'b', 'c'];
var tempDatabase = 'first';
var tempTable = 'Second';
var copyArray = MAGIC(tempDatabase + tempTable);
copyArray
should be the array: ['a', 'b', 'c']
. Is there a way to achieve this?