// Create an ArrayBuffer with a size in bytes const buffer = new ArrayBuffer(16); const view = new DataView(buffer, 12, 4); // From byte 12 for the next 4 bytes console.log(view.byteOffset); // Expected output: 12