enumA set of named constants.Syntaxenum Name { A, B, C }DescriptionGives readable names to related constant values.ExampleLoading editor…▶ Try it yourselfExpected output0When to use?Limited sets of options such as status, direction, role.Related commandsLiteral type← Generic ( <T> )as (type assertion) →