January 2017
Beginner to intermediate
550 pages
10h 6m
English
Each object has a few properties. Each property, in turn, has a key and attributes. A property's state is stored in these attributes. All properties have the following attributes:
false, the property cannot be deleted or edited (it cannot change any of its attribute).You can use the Object.getOwnPropertyDescriptor() method to retrieve an object's own properties:
let obj = { age: 25 } console.log(Object.getOwnPropertyDescriptor(obj, 'age')); ...Read now
Unlock full access