Hi there,
I have a little problem working with JavaScript, I was wondering if i could use some trick to call different variables with a base name. I'll explain it:
var number1 = new Array();
var number2 = new Array();
number1[1] = "one";
number1[2] = "two";
number1[3] = "three";
number2[1] = "four";
number2[2] = "five";
number2[3] = "six";
//can I process that arrays in some way like this?
for(var i=0;i=3;i++) {
document.writeln("number.i");
}
I'm trying to read that array in some "dynamic" way, but WITHOUT using bidimensional arrays, trying to use some kind of "dynamic variables name".
Can this be possible without use bidimensional arrays?
Thanks in advance.