Menu
I’m trying to create variable names on the fly in a for loop, something like below:
for i = 0; i<data.rows.length; i ++ {
var a + data.rows.[i].c[1].v = ‘ some value’;
var b + data.rows.[i].c[1].v = ‘ some value’;
var c + data.rows.[i].c[1].v = ‘ some value’;
}
My goal is to have the variable names like:
a1234 = ‘some value’;
b1234 = ‘some value’;
c1234 = ‘soome value’;
I keep getting error messages though. Does anyone have a good solution? Thanks!