I\'m rebuilding an old Java project in Javascript, and realized that there\'s no good way to do enums in JS.
The best I can come up with is:
const C
If you don't need pure ES6 and can use Typescript, it has a nice enum:
enum
https://www.typescriptlang.org/docs/handbook/enums.html