I'm using the platform of Google Earth Engine.
I have my list of variables, and what i want is to assign each value of i to each variable
var Y03, Y04, Y05, Y06, Y07, Y08,Y09, Y10, Y11, Y12,Y13, Y14, Y15,Y16, Y17, Y18;
var Years = [ Y03, Y04, Y05, Y06, Y07, Y08,Y09, Y10, Y11, Y12,Y13, Y14, Y15,Y16, Y17, Y18];
for (var i = 2003; i <= 2018; i++){
Years[i] = i;
}
print(Y05); //undefined
As you can see, when i use print(Y05), the result is undefined and i want 2005.