ts enum

Solutions on MaxInterview for ts enum by the best coders in the world

showing results for - "ts enum"
Jazmín
10 Jan 2021
1enum vscode {
2    good,bad,medium
3}
4
5console.log(vscode.bad)
Andrea
26 Nov 2020
1enum Response {
2    No = 0,
3    Yes = 1,
4}
5
6function respond(recipient: string, message: Response): void {
7    // ...
8}
9
10respond("Princess Caroline", Response.Yes)
11