I'm kind of new ... so go easy on me. This is what I want to do:
I have variables named:
var item1, item2, item3, etc.;
I want to use a For loop to asign values to the variables. Like this:
for(var i = 0; i < 5; i++){ item + (i+1) = arr[i] }
How can I do this without getting the Invalid left-hand side in assignment error?
Thank you.