Easy JavaScript Part 7 : Object Property Descriptors

In JavaScript, you can create an object literal as shown in the listing below:
var cat = {
name: ‘foo’,
age: 9
};
At first sight, it looks like the object cat has two properties with a string and number value. However, it’s much more than that to a JavaScript interpreter. In ES5, the concept of a Property Descriptor was introduced. Before we go ahead and discuss property descriptors, let’s try to answer a few questions:

Link: https://dzone.com/articles/easy-javascript-part-7-object-property-descriptors?utm_medium=feed&utm_source=feedpress.me&utm_campaign=Feed%3A+dzone%2Fwebdev