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 enum in javascript?
Is javascript safe to download?
how to use java script
Is javascript backend or frontend?
How to create 3-dimensional Array in Javascript?
Where do I put javascript code in html?
What are javascript closures?when would you use them?
What is a boolean search?
What is hoisting in javascript?
What are the advantages of using external javascript?
What is the use of Push method in JavaScript?
What creates scope in javascript?