Understanding JavaScript Accessors: Getters & Setters

Note: This post is work-in-progress learning-note and still in active development and updated regularly. In the previous learning-note post Deep Dive into JavaScript Property Descriptors, we discussed briefly about property descriptor attributes – writable, enumerable, configurable and how their modification affects property enumeration with for..in loop or Object.keys() method and their use in JSON.stringify() method. […]

Understanding Computed Property Names

Note: This post is work-in-progress learning-note and still in active development and updated regularly. In a previous learning-post JavaScript Objects – The Basics, we discussed simple key:value object properties (values associated with properties). Before ECMAScript 2015(ES6), the property names in the object initializers were literals, mostly as static strings. The MDN documentation has detailed discussion […]

Thoughts #5: Understanding JS Enumerable Properties Descriptor

While doing Understanding JavaScript For Loops learning-note lesson, knowledege of enumerable property is important because only enumerable properties are listed using for..in loop and Object.keys(). When an object is created using an object initializer, its descriptor properties are set behind the seen and not obvious. Understanding of enumerable property is important working with loops & […]

Deep Dive into JavaScript Property Descriptors

Note: This post is work-in-progress learning-note and still in active development and updated regularly. In a previous learning-post JavaScript Objects – The Basics, we discussed simple key:value object properties (values associated with properties). The value is one of the attribute of a property. Other attributes include enumerable, configurable and writable. These attributes further define an […]

Learning JavaScript Prototypes & Inheritance

Note: This post is work-in-progress learning-note and still in active development and updated regularly. In previous learning-note post, JavaScripts Objects – The Basic some basic features of objects: syntax, creating objects with literals, properties & methods, assessing object properties & methods were discussed.In this learning-note post, more advanced features of creating new objects with constructor […]