Class Fields vs. Methods in JavaScript

from blog Aleksandr Hovhannisyan, | ↗ original
In JavaScript, class fields allow you to define properties on a class instance outside the constructor. In the case of function properties, it's important to understand how fields differ from methods and their potential tradeoffs.