Symbol.prototype.toString

Returns a string representation of the symbol.

Syntax

toString()

Return value

A string.

Examples

Symbol("peace").toString()
"Symbol(peace)"