I want to have the following code:
var this["myVariable" + i] = new Object();
The compiler throws an error.
I’ve also tried:
var eval("myVariable" + i) = new Object();
This also gets rejected.
I need to have the code in a for loop and hence the syntax.
Where am I going wrong?
Thanks.
OM