JavaScript Editor Ajax toolkit     Ajax website 



Main Page

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.

    В CopyCode imageCopy 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).

See Also

Concepts

Array Use

Other Resources

JScript Reference



JavaScript Editor Ajax toolkit     Ajax website


©