TypeScript enum

up:: Typescript

// PascalCase
enum Size { Small, Medium, Large } // by default, numbers through from 0
let mySize: Size = Size.Medium // -> 1
 
// can be overwritten
enum Size { Small = 1, Medium, Large } 
let mySize: Size = Size.Medium // -> 2