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
/
Objects and prototypes
What flags does Object.defineProperty(record, 'id', { value: 7 }) give the new property?
from Objects and prototypes
Node 24
intermediate
1 min
What flags does Object.defineProperty(record, 'id', { value: 7 }) give the new property?
writable, enumerable, and configurable are all false.
All three flags are true, like ordinary assignment.
Only writable is true.
The flags are inherited from Object.prototype.
Check
Ask AI about this kata
Report an error
next kata
For an ordinary constructable function C and const value = new C(), which relationship no…
Quiz
A new version is available
Reload