How can I assign a static property (constant) to my ES6 class?
Pseudo code about what I want to achieve:
class MyClass {
static run() {
// do something
}
static CONSTANT = {
foo: "bar"
}
}
MyClass.run(); // this works
console.log(MyClass.CONSTANT); // this sadly not
Which gives me the error:
Uncaught SyntaxError: Unexpected token =