Get to know MDN better
This page was translated from English by the community. Learn more and join the MDN Web Docs community.
다음과 같은 원인 때문이다:
Array 와 ArrayBuffer 의 길이에 제한을 둔 이유는, Array 나 ArrayBuffer 의 length 속성은 사인되지 않은(unsigned) 32 비트 정수로 반영되기 때문이다. 즉 Array나 ArrayBuffer 는 오직 0 ~2^32-1 사이의 값만을 저장할 수 있다.
Array의 length로 해석되는 첫번째 argument로서 문자열 표기를 통해 contructor를 사용하여 Array를 생성할 수 있다.
다른 방법으로는, length 속성을 설정하기 전에 length의 길이에 제한을 두거나, constructor의 aurgment로서 사용할 수 있다.
This page was last modified on 2023년 8월 10일 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.