TypeScript Enums
By default, enums will initialize the first value to 0 and add 1 to each additional value:
You can set the value of the first numeric enum and have it auto increment from that:
You can assign unique number values for each enum value. Then the values will not incremented automatically:
Enums can also contain strings This is more common than numeric enums, because of their readability and intent.