3 ms·
Couldn't you solve this with privates, either via a naming convention or with symbols, as well as using getters?
by davidjnelson 9y ago
Couldn't you solve this with privates, either via a naming convention or with symbols, as well as using getters?
- emodendroket 9y agoNot really. If I declare that an object has property xyz obj.xyz and obj['xyz'] are both valid ways of addressing it.