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
/
Classes
Which statement about a field declared as #records is correct?
from Classes
Node 24
intermediate
1 min
Which statement about a field declared as #records is correct?
Access inside the declaring class checks that the receiver has that class private brand.
Object spread copies it when the field value is enumerable.
A subclass can access it directly because private fields follow the prototype chain.
Object.hasOwn(instance, '#records') detects it.
Check
Ask AI about this kata
Report an error
previous kata
What does this program print?
Predict the output
next kata
Review a generated session store
Review AI code
A new version is available
Reload