When I create a new JavaScript array, and use an integer as a key, each element of that array up to the integer is created as undefined.
For example:
v
You can just use an object:
var test = {} test[2300] = 'Some string';