Notes of Maks Nemisj

Experiments with JavaScript

classes

Why getters/setters is a bad idea in JavaScript

UPDATE (15 May 2020) : I see a lot of comments regarding TypeScript and that there is no issue with setters/getters while using static typing. Of course, you can safely use getters/setters in the environment, which guarantees static type check, but this article is about vanilla JavaScript. This article is my opinion why I think this […]

, , ,