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 is a hash javascript?
Define unescape() and escape() functions?
How do I activate javascript on my phone?
What are the different functional component in javascript?
Is javascript backend or frontend?
Difference between window, document, and screen in Javascript?
What is innertext javascript?
What is triple dot in javascript?
Define escape() function?
How you will write a java script function that display an alert on the screen?
What can I build with javascript?
What is javascript used for in web design?