I have a situation as follows.
var varable_1=10;
var variable_2=20;
.....
var variable_n=10000;
function update_varable(variable){
....some code.....
}
I need to update each of those variables by calling update_variable('variable_1');update_variable('variable_2')....etc.
Is it possible?
var variables = [10, 20, 30, /* , ... */ , 10000]? Then you could just giveupdate_variablethe indexiand usevariables[i].