JavaScript structuredClone Quiz: Identity, Cycles and Transfer

JavaScript structuredClone Quiz: Identity, Cycles and Transfer

Choose one answer. Each attempt draws 10 of 20 questions; the practice pass mark is 8/10. Original topic practice, not an official exam. Structured cloning of ordinary data, unsupported values and ArrayBuffer transfer.
1 of 10
What is printed?
JavaScript
const buffer = new ArrayBuffer(8);
const copy = structuredClone(buffer, {transfer: [buffer]});
console.log(buffer.byteLength, copy.byteLength);