I'm curious to know the most efficient way to declare private members within ES6 classes.
In simpler terms, what is the best practice for implementing:
function MyClass() {
var privateFunction = function() {
return 0;
};
this.publicFunction = function() {
return 1;
};
}
as
class MyClass {
// ???
publicFunction() {
return 1;
}
}