JS Built-ins
SharedArrayBufferbeginner

SharedArrayBuffer β€” instanceof check

πŸ“– Usage Example
const sab = new SharedArrayBuffer(16)
sab.byteLength  // β†’ 16

SharedArrayBuffer creates a fixed-size binary buffer that can be shared between workers.

SharedArrayBuffer Constructor

new SharedArrayBuffer(byteLength) creates a shared memory buffer.

Challenge: Verify that the result is an instance of SharedArrayBuffer.

πŸ’‘ Hints (1)
  • β€’ new SharedArrayBuffer(byteLength) allocates a fixed-size shared memory buffer.