JavaScript Typed Array

const buffer = new ArrayBuffer(16);//16 represents 16 bytes meaning 16x8= 128bits in total
if (buffer.byteLength === 16) {
  console.log("Yes, it's 16 bytes.");
} else {
  console.log("Oh no, it's the wrong size!");
}

const int32View = new Int32Array(buffer);
for (let i = 0; i < int32View.length; i++) {
  int32View[i] = i * 2;
}
Revision Only