I have few javascript variables:
var column1
var column2
var column3
etc...
I have a for loop,
for (i=1; i<10; i++) {}
I would like to loop through and reference these variable inside the for loop. How do I reference each column
variable individually? I'm looking to do something like this:
for (i=1; i<10; i++) {
columni = i;
}
so at the end of this I'll have:
column1 = 1
column2 = 2
column3 = 3