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 the use of a set object in javascript?
What are nodes in javascript?
how to run java script program
What's math constants and functions using javascript?
What is the difference between let and var?
What is null variable?
What are the advantages of javascript?
How about 3+5+"8"?
Can you call a Java Applet using a JavaScript function?
What are the application of javascript?
what is the difference between the below two statements:- (1) var myname = "akiii"; (2) myname = "akiii";
How to create an input box?