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
After const copy = Object.assign({}, source), what is guaranteed about a nested object at…
from Object static methods
Node 24
beginner
1 min
After const copy = Object.assign({}, source), what is guaranteed about a nested object at source.settings?
copy.settings and source.settings refer to the same object unless a later source overwrites the property.
Object.assign recursively clones settings and preserves no shared identity.
Object.assign freezes settings before placing it in copy.
The result depends only on whether source was declared with const.
Check
Ask AI about this kata
Report an error
next kata
What does Object.freeze(config) guarantee when config has a nested preferences object?
Quiz
A new version is available
Reload