ts enum 1

ts enum

enum vscode {
    good,bad,medium
}

console.log(vscode.bad)

Here is what the above code is Doing:
1. We are creating an enum called vscode.
2. We are giving it three values: good, bad, medium.
3. We are printing the value bad.

Similar Posts