JS Built-ins
WeakMapbeginner

WeakMap β€” instanceof

πŸ“– Usage Example
const wm = new WeakMap()
wm instanceof WeakMap  // β†’ true

WeakMap is a collection of key-value pairs where keys must be objects.

WeakMap Constructor

new WeakMap() instanceof WeakMap is true.

Challenge: Verify the instanceof check.

πŸ’‘ Hints (1)
  • β€’ WeakMap is a constructor that creates WeakMap instances.