JavaScript Getter/Setter Danger
I recently made a mistake I’ve made before. This time decided to never again use get or set in JavaScript. I simplified a class to show the problem. Here’s some code without any issues Everything works great. I can put checks in the setter to ensure the value it is set to is a positive […]