What is an enum
Answer / 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 |
What are 2 (shorthand) boolean operators supported by javascript
How to get complete current page url with javascript?
What are the types of variables in javascript?
In how many ways a Javascript code can be involved in an HTML file?
What are the basic groups of dataypes in JavaScript?
Is webassembly faster than javascript?
What is array explain it?
How to read a cookie using javascript?
What is prototype in javascript and how do you use it?
How do I disable javascript in my browser?
Why jquery is used instead of javascript?
What is the role of a strict mode in javascript?