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

What happens to existing typed-array views when their backing ArrayBuffer is transferred or detached, and how does element access behave afterward?

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