92
rated 0 times
[
93]
[
1]
/ answers: 1 / hits: 38672
/ 11 Years ago, mon, may 20, 2013, 12:00:00
Is it possible to set the custom index of an array with a variable.
for example:
var indexID = 5;
var temp = {
indexID: new Array()
};
The above example sets the array index to indexID
and not 5
. I have tried using =
snd quotes but I without any success.
Thnaks
More From » arrays