What is an enum



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

Post New Answer

More JavaScript Interview Questions

What is the use of a set object in javascript?

0 Answers  


What are nodes in javascript?

0 Answers  


how to run java script program

1 Answers  


What's math constants and functions using javascript?

0 Answers  


What is the difference between let and var?

0 Answers  






What is null variable?

0 Answers  


What are the advantages of javascript?

0 Answers  


How about 3+5+"8"?

0 Answers  


Can you call a Java Applet using a JavaScript function?

2 Answers   HCL, Satyam,


What are the application of javascript?

0 Answers  


what is the difference between the below two statements:- (1) var myname = "akiii"; (2) myname = "akiii";

0 Answers  


How to create an input box?

0 Answers  


Categories