DEV Community

Discussion on: Hiding details in JavaScript classes with symbols

Collapse
 
theodesp profile image
Theofanis Despoudis

Even though _firstname does not change the property doing something like:

p[s_firstname] = "Nana";

does, which totally defeats the purpose of it