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 |
How can I learn coding fast?
How does typeof operator work?
What does “1?+2+4 Evaluate to? What about 5 + 4 + “3??
How many types of data types are there?
What is null variable?
Can you access Cookie using javascript?
What are the main functions performed by javascript statements?
Explain why asynchronous code is important in javascript?
What are anonymous functions in Javascript?
Can you use javascript to hack?
Is null in javascript?
How to detect the OS on the client machine in JavaScript?