Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardJavaScripttyped arrays and ArrayBufferSingle-choice MCQ

After a successful structuredClone-style transfer (ArrayBuffer.prototype.transfer), what is the state of the original buffer and any typed-array views over it?

const buf = new ArrayBuffer(8); const u = new Uint8Array(buf); u[0] = 42; const moved = buf.transfer(); console.log(buf.byteLength, u[0], moved.byteLength);