TypedArray.prototype.BYTES_PER_ELEMENT
TypedArray.prototype.BYTES_PER_ELEMENT is a JavaScript property in the Typed Array category. The number of bytes per element. The syntax is ta.BYTES_PER_ELEMENT. A typical example: new Int8Array().BYTES_PER_ELEMENT // 1. A close sibling is Int8Array, which 8-bit signed integer array. A close sibling is Uint8Array, which 8-bit unsigned integer array. A close sibling is Float64Array, which 64-bit float array. A close sibling is ArrayBuffer, which fixed-length binary buffer. More about this category: Typed arrays for binary data. Related Typed Array methods: Int8Array, Uint8Array, Float64Array, ArrayBuffer, Int32Array, Uint16Array, BigInt64Array, BigUint64Array. This page is part of the free JS Reference documentation covering 1027+ methods, each with syntax, parameters, return values, examples, and common pitfalls. You can try TypedArray.prototype.BYTES_PER_ELEMENT immediately in the JavaScript playground, look up unfamiliar terms in the glossary, or return to the JS Reference homepage.