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
/
Object static methods
What does Object.freeze(config) guarantee when config has a nested preferences object?
from Object static methods
Node 24
intermediate
1 min
What does Object.freeze(config) guarantee when config has a nested preferences object?
The own data properties of config cannot be written, removed, or reconfigured, but preferences is not frozen automatically.
Every object reachable from config becomes deeply immutable.
Existing getters are evaluated once and replaced by fixed values.
The config binding can no longer be assigned a different object.
Check
Ask AI about this kata
Report an error
previous kata
After const copy = Object.assign({}, source), what is guaranteed about a nested object at…
Quiz
next kata
What does this program print?
Predict the output
A new version is available
Reload