Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
JavaScript
/
Symbol
When is Symbol.for the appropriate choice?
from Symbol
Node 24
intermediate
1 min
When is Symbol.for the appropriate choice?
When separately loaded components intentionally share a documented runtime key namespace.
When a field must survive JSON serialization without an encoder.
When object state must be inaccessible to reflection.
Whenever a key string comes from untrusted user input.
Check
Ask AI about this kata
Report an error
previous kata
What does this program print?
Predict the output
next kata
Review a generated plugin normalizer
Review AI code
A new version is available
Reload