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...
siddhantsiddh15.hashnode.dev2 min read