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

Two symbols are obtained from the global registry in the same realm with the same key. What is true about their identity and storage?

const a = Symbol.for('app.id'); const b = Symbol.for('app.id'); console.log(a === b, a === Symbol('app.id'));