🟦 TypeScript Enums

Enums let you define a set of named constants, making your code more readable and manageable.

📚 Example Code: Basic Enum

Console output will appear here...
💡 Enums can be numeric (default starting at 0) or string-based (explicit values). Use them to improve clarity in your code.

🔧 Enum Variants

// Numeric enum (default)
enum Status {
  Ready,
  Waiting,
  Complete
}

// String enum
enum Color {
  Red = "RED",
  Green = "GREEN",
  Blue = "BLUE"
}