Category – Javascript
1 post tagged with "Javascript" (See all categories)

PPrivate Members in Javascript Classes

01/12/2019 — 2 Min Read — In Javascript

Unfortunately there is no native private properties in Javascript. But there is a few way to mimic that behavior. 1. Scoped variables Don't attach the new properties to the object, but keep them…