carrying on from part 1 .. Getters in JavaScript Getters are functions that retrieve a value from static properties from an external source. You can only access properties and cannot access methods as they are functions of an object or class and are not static. There are three ways you can use getters and setters: 1. Default method syntax 2. get keyword 3. Object.defineProperty() method
Getters & Setters in JavaScript – part 2
[ Read More ]