Question: are there enums in javascript?
Answer: Enums are not supported in JavaScript natively. ... freeze by creating objects containing all the enumerable properties and then freezing the object so that no new enum can be added to it.