xxxxxxxxxx
// Create an ArrayBuffer with 16 bytes
const buffer = new ArrayBuffer(16);
// Create an Int32Array view on the buffer
const int32Array = new Int32Array(buffer);
// Fill the Int32Array with values
int32Array[0] = 42;
int32Array[1] = 23;
// Read values from the Int32Array
console.log(int32Array[0]); // Output: 42
console.log(int32Array[1]); // Output: 23