JS Built-ins
Symboldescriptionbeginner

Symbol.description β€” typeof is string

πŸ“– Usage Example
const s = Symbol('x')
typeof s.description   // β†’ 'string'

When present, .description is always of type 'string'.

typeof Symbol Description

When a description exists, its type is always 'string'.

Challenge: Verify the type.

πŸ’‘ Hints (1)
  • β€’ The description property is always a string when present.