Get to know MDN better
This page was translated from English by the community. Learn more and join the MDN Web Docs community.
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2015년 7월.
Int16Array 형식화 배열(TypedArray)은 플랫폼의 바이트 순서를 따르는 2의 보수 16비트의 부호있는 정수의 배열입니다. 바이트 순서를 제어해야 하는 경우 대신 DataView를 사용합니다. 배열의 내용은 0으로 초기화됩니다. 배열이 생성되면 객체의 메서드를 사용하거나 표준 배열 인덱스 구문(즉, 대괄호 표기법 사용)을 사용하여 배열의 요소를 참조할 수 있습니다.
새로운 Int16Array 객체를 생성합니다.
부모 TypedArray에서 정적 속성을 상속합니다.
Int16Array.BYTES_PER_ELEMENT요소 크기를 숫자로 반환합니다. Int16Array의 경우 2 입니다.
Int16Array.name생성자 이름을 문자열로 반환합니다. Int16Array 타입의 경우 "Int16Array"입니다.
부모 TypedArray에서 정적 메서드를 상속합니다.
부모 TypedArray에서 인스턴스 속성을 상속합니다.
Int16Array.prototype.BYTES_PER_ELEMENT요소 크기를 숫자로 반환합니다. Int16Array의 경우 2 입니다.
부모 TypedArray에서 인스턴스 메서드를 상속합니다.
| ECMAScript® 2027 Language Specification # sec-typedarray-objects |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2024년 12월 17일 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.