Get to know MDN better
Esta página ha sido traducida del inglés por la comunidad. Aprende más y únete a la comunidad de MDN Web Docs.
This feature is well established and works across many devices and browser versions. It’s been available across browsers since septiembre de 2015.
El método toString() devuelve una cadena que representa el objeto Symbol especificado.
Una cadena que representa el objeto Symbol especificado.
El objeto Symbol reemplaza el método toString del objeto Object; no hereda Object.prototype.toString(). Para los objetos Symbol, el método toString devuelve una representación de cadena del objeto.
Aunque se puede llamar a toString() en los símbolos, no se puede utilizar la concatenación de cadenas con ellos:
| ECMAScript® 2027 Language Specification # sec-symbol.prototype.tostring |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 11 feb 2025 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.