Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardJavaScriptSymbol registrySingle-choice MCQ

Two symbols are created, one via the global Symbol registry and one as a description-only symbol. Why are they not equal, and what is the registry's identity rule under the hood?

const a = Symbol.for('app.id'); const b = Symbol('app.id'); const c = Symbol.for('app.id');