-
JavaScript Property Getters and Setters
In this chapter, we cover the types of object properties. As a rule, there exist two object property types: data properties and accessor properties. All the properties we represented before are data properties. Accessor properties are relatively new and execute on getting and setting values. However, they seem like a regular property to the external…
-
JavaScript Property Flags and Descriptors
Objects are capable of storing properties. Unlike a regular property, an object property is considered a more powerful and flexible thing. In this chapter, we are going to represent to you several additional options for configuration. Property Flags Object properties include three specific attributes (besides the value). They are called flags. They can be: writable – in…