MDN self-hosted library · e01.org

Symbol.prototype[Symbol.toPrimitive]()

Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.

js
const sym = Symbol("example");
sym === sym[Symbol.toPrimitive](); // true