// Create an ArrayBuffer with a size in bytes const buffer = new ArrayBuffer(16); const view = new DataView(buffer); view.setUint16(1, 65535); // Max unsigned 16-bit integer console.log(view.getUint16(1)); // Expected output: 65535