Some Pitfalls of Arrow Funtions

Note: This post is work-in-progress learning-note and still in active development and updated regularly. In a separate post Understanding JavaScript Arrow Functions, arrow functions, its syntax, major features and some use case examples were discussed. Since arrow functions were added in ES6 as (i) shorter and concise syntax alternatives to autonomous functions , and (ii) […]

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 […]

General

Sarah Drasner, an award-winning Speaker, Senior Developer Advocate at Microsoft, and Staff Writer at CSS-Tricks, has a very thoughtfully written post on Mourning as a Developer in Medium. I can relate one of her experiences: coding as a distraction. While I am learning WordPress & JavaScript it helps to get distracted from other things that are going on. It has been very helpful as well as productive get away for me too!

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 & […]