I\'m trying to create an associative array, create an empty array, and then add a (indexName -> value) pair:
indexName
var arrayName = new Array; arrayName[\
Are you looking for variableName = 'bla'+'foo'; arrayRef[variableName] = 'something'; ?
variableName = 'bla'+'foo'; arrayRef[variableName] = 'something';
And even so, you should use an object literal instead. x = {}; x[variablename] = 'blah';
x = {}; x[variablename] = 'blah';