0
3
GGGiovanny Gongora
By default, any enum will begin numbering their members starting at 0.
enum Color {
Gray, // 0
Red, // 1
Green = 100, // 100
Blue, // 101
Yellow = 2 // 2
}
const myColor: Color = Color.Green
0
3
GGGiovanny Gongora
By default, any enum will begin numbering their members starting at 0.
enum Color {
Gray, // 0
Red, // 1
Green = 100, // 100
Blue, // 101
Yellow = 2 // 2
}
const myColor: Color = Color.Green