Closed Eskibear closed 5 months ago
https://262.ecma-international.org/13.0/#sec-privateelement-specification-type https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes/Private_properties
We can prepend # to names of private fields and methods. Then users won't have chance to access those internal members.
#
https://262.ecma-international.org/13.0/#sec-privateelement-specification-type https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes/Private_properties
We can prepend
#
to names of private fields and methods. Then users won't have chance to access those internal members.