JS Built-ins
SymboltoPrimitivebeginner

Symbol.toPrimitive β€” typeof is symbol

πŸ“– Usage Example
typeof Symbol.toPrimitive   // β†’ 'symbol'

Symbol.toPrimitive is a well-known symbol used to define custom type coercion.

Symbol.toPrimitive

Symbol.toPrimitive is a well-known symbol used to define custom type coercion for objects.

Challenge: Verify its type.

πŸ’‘ Hints (1)
  • β€’ Symbol.toPrimitive is a well-known symbol on the Symbol constructor.