Enums in TypeScript
For having different types of values associated with variable we can use an object and have keys attached to our requirement. const MatchResult = { HomeWin: 'H'; AwayWin : 'A'; Draw : 'D'; } // OR WE CAN DO THIS const homeWin = 'H'; cons...
Nov 26, 20232 min read8

