A value assigned to the length property of an Array object is negative or not a number (NaN). Note that JScript automatically converts fractional numbers to whole integers.
To correct this error
-
Assign a positive integer or zero to the length property. The following example demonstrates the correct way to set the length property of an Array object.
В Copy Code
var my_array = new Array(); my_array.length = 99;
There is no upper limit for the size of an array, other than the maximum integer value (approximately 4 billion).