I have a quick question. What's the cleanest and straightforward way to declare private members inside ES6 classes?
In other words, how to implement
function MyClass () {
var privateFunction = function () {
return 0;
};
this.publicFunction = function () {
return 1;
};
}
as
class MyClass {
// ???
publicFunction () {
return 1;
}
}