Home
My Highlights
Discover
Sign up
Property flags and descriptors
javascript.info
Object properties, besides a value, have three special attributes (so-called “flags”): When we create a property “the usual way”, all of them are true. But we also can change them anytime. Please note: configurable: false prevents changes of property flags and its deletion, while allowing to change
3 Users
0 Comments
43 Highlights
0 Notes
Top Highlights
Object properties, besides a value, have three special attributes (so-called “flags”):
When we create a property “the usual way”, all of them are true. But we also can change them anytime.
Please note: configurable: false prevents changes of property flags and its deletion, while allowing to change its value.
Until now, a property was a simple “key-value” pair to us. But an object property is actually a more flexible and powerful thing.
The method Object.getOwnPropertyDescriptor allows to query the full information about a property.
Tags
Javascript
Domain
javascript.info
Ready to highlight and find good content?
Glasp is a social web highlighter that people can highlight and organize quotes and thoughts from the web, and access other like-minded people’s learning.
Start Highlighting