0 votes
in TypeScript - JavaScript's Superset by
recategorized by

Which of the following is the right way of defining enum?

a) enum Enum {}

b) const enum DNA {}

c) declare enum Enum {}

d) All the options

1 Answer

0 votes
by
edited by

All the options

enum Enum {}, const enum DNA {} and declare enum Enum {} are the right way of defining enum

Related questions

0 votes
asked Jan 27, 2020 in TypeScript - JavaScript's Superset by AdilsonLima
0 votes
asked Mar 22, 2022 in TypeScript - JavaScript's Superset by sharadyadav1986
...