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
temp
is not an array.