Variables in array.
Posted: Sun Mar 07, 2010 12:01 pm
Hi im abit new with Js i created an easy timer in Js and now i wanna try something new.
Well i tried a few stuffs the ni thought of variables in arrays... i know that u can but normal "words" in an array but how do u do with variables?
var mycars = new Array();
mycars[0] = "Saab";
mycars[1] = "Volvo";
mycars[2] = "BMW";
Here i use normal words..
Can someone please tell me how i can input variables into the array so that the variable input shows instead of the variables name. =)
Well i tried a few stuffs the ni thought of variables in arrays... i know that u can but normal "words" in an array but how do u do with variables?
var mycars = new Array();
mycars[0] = "Saab";
mycars[1] = "Volvo";
mycars[2] = "BMW";
Here i use normal words..
Can someone please tell me how i can input variables into the array so that the variable input shows instead of the variables name. =)