JS Built-ins
SymboltoStringbeginner

Symbol.toString() β€” typeof result

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

Symbol.prototype.toString() always returns a string primitive, not a symbol.

typeof Symbol.toString() Result

sym.toString() returns a string primitive.

Challenge: Verify the type.

πŸ’‘ Hints (1)
  • β€’ toString() always produces a string.