49
rated 0 times
[
53]
[
4]
/ answers: 1 / hits: 137815
/ 13 Years ago, wed, april 27, 2011, 12:00:00
Code
var cool = new Array(3);
cool[setAll] = 42; //cool[setAll] is just a pseudo selector..
alert(cool);
Result
A alert message:
42,42,42
How do I change/set all values of an array to a specific value?
More From » arrays