JS Built-ins
SymbolhasInstancebeginner

Symbol.hasInstance β€” typeof is symbol

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

Symbol.hasInstance is a well-known symbol that customises the instanceof operator.

Symbol.hasInstance

Symbol.hasInstance is a well-known symbol used to customise the instanceof operator behaviour.

Challenge: Verify its type.

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