I have searched this site and also googled but can't seem to find the answer.
I need to create object instances dynamically where the instance name is provided as variable, so rather than access the object properties using:
var n = 'abcd';
eval('var '+n+' = new myinst();');
abcd.property = value;
I need to access using a variable:
['abcd'].property = value;
But this does not appear to work - what am I missing ?