JS Built-ins
SymboltoPrimitiveintermediate

Symbol.toPrimitive β€” not in global registry

πŸ“– Usage Example
Symbol.keyFor(Symbol.toPrimitive)   // β†’ undefined

Well-known symbols are distinct from globally registered symbols.

Symbol.toPrimitive is Well-Known, Not Global

Symbol.toPrimitive !== Symbol('Symbol.toPrimitive') β€” the well-known symbol is distinct from any locally created symbol with the same description.

Challenge: Verify they are not equal.

πŸ’‘ Hints (1)
  • β€’ Well-known symbols are not global registry symbols.