Javscript Loop / Array / Variable question
- by Chris Chiera
Hi. I'm trying to get this to work and I hope this isn't too vague. -Chris
var example = new Array();
var test1 = "one";
var test2 = "two";
var test3 = "three";
for (v = 1; v <= 3; v++) {
alert(example[test + v])
}