Classes: private variables
Hey, i don’t really understand the use of private variables inside of classes e.g.
#example
. Mdn says that it means they can’t legally be referenced outside of the class but isn’t that the default behaviour anyway since it’s defined within the class scope?
Thanks in advance2 Replies