Symbol.prototype.toString()
Symbol.prototype.toString() is a JavaScript method in the Symbol category. Returns a string representation. The syntax is symbol.toString(). A typical example: Symbol("test").toString() // "Symbol(test)". A close sibling is Symbol(), which creates a unique symbol. A close sibling is Symbol.for(), which looks up or creates a symbol in the global registry. A close sibling is Symbol.keyFor(), which returns the key of a global symbol. A close sibling is Symbol.iterator, which the well-known symbol for the default iterator. More about this category: Symbol methods and properties. Related Symbol methods: Symbol(), Symbol.for(), Symbol.keyFor(), Symbol.iterator, Symbol.asyncIterator, Symbol.hasInstance, Symbol.toStringTag, Symbol.toPrimitive. This page is part of the free JS Reference documentation covering 1027+ methods, each with syntax, parameters, return values, examples, and common pitfalls. You can try Symbol.prototype.toString() immediately in the JavaScript playground, look up unfamiliar terms in the glossary, or return to the JS Reference homepage.