Member variables in ES6 classes
ES6 will almost certainly not cover syntax for defining class variables. Only methods and getters/setters can be defined using the class syntax. This means you’ll still have to go the MyClass.classVariable = 42; route for class variables. If you just want to initialize a class with some defaults, there is a rich new syntax set … Read more