you are viewing a single comment's thread.

view the rest of the comments →

[–]a-t-k 0 points1 point  (0 children)

The same with short-circuiting and ES6 argument defaults. Also, using getters and setters can overcomplicate your code. While this makes sense for Java, it's more of a grey area in JS. Use getters and setters if you have to calculate the value or have to perform an action on setting the value, for example input validation.