---
title: Enums
---

## Enums

Developers can use `Enums` to define a set of named constants.

There are two types of `Enums`

1. numeric
1. string-based

```typescript
// numeric enum
enum NumericEnum {
    numeric1 = 1,
    numeric2,
    numeric3,
    numeric4,
}

// string based enum
enum StringBasedEnum {
    Programming = "is fun",
    Pizza = "is good"
}
```
