Tin mới
JavaScript: Scripting language
Web APIs: Programming interfaces
Structuring content with HTML module
Dynamic scripting with JavaScript module
The value of the length property is a nonnegative integer with a value less than 232.
Create empty array of fixed length
Setting length to a value greater than the current length creates a sparse array.
Array with non-writable length
The length property is automatically updated by the array when elements are added beyond the current length. If the length property is made non-writable, the array will not be able to update it. This causes an error in s
RangeError: invalid array length
This page was last modified on May 2, 2026 by MDN contributors.