// Create an ArrayBuffer with a size in bytes const buffer = new ArrayBuffer(16); const view = new DataView(buffer); view.setFloat16(1, Math.PI); console.log(view.getFloat16(1)); // Expected output: 3.140625