Declaring static constants in ES6 classes?
Here’s a few things you could do: Export a const from the module. Depending on your use case, you could just: export const constant1 = 33; And import that from the module where necessary. Or, building on your static method idea, you could declare a static get accessor: const constant1 = 33, constant2 = 2; … Read more