Answer Posted / hrpatelsoft@gmail.com
An enum is a type restricting variables to one value from a predefined set of constants. JavaScript has no enums but typescript provides built-in enum support.
enum Color {
RED, GREEN, BLUE
}
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are the different actions that are performed using javascript?
What does a typeof operator do?
Why is currying called currying?
What is the use of blur function in JavaScript?
How are event handlers utilized in javascript?
What is the main difference between Map collections and other collections such as Set.
Why do we need currying?
What is null in javascript?
What is a class in javascript?
Are Attributes and Property the same?
How to create multiline strings in javascript?
What is array in javascript?
Describe the properties of an anonymous function in JavaScript?
What does undefined value mean in javascript?
How to reload the current page?