enums in typescript string code example Example: enum in ts enum Direction { Up, Down, Left, Right, }