I feel kind of stupid about this, but from what I've searched and read I understand that there is no way to create a truely private var in ecma6 classes. am I correct?
this is an examplee of a getter function in emca5, is there anyway to do this in ecma6-classes?
function foo() {
var me="foo";
this.getPrivate() {
return me
}
}
var new_foo = new foo()
console.log( new_foo.me) //return undefined
console.log( new_foo.getPrivate()) //return "foo"