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 will be the output of the following statements?

0 Answers  


Why is object naming important to use in javascript?

0 Answers  


How to go next field without filling the text? Which function should we use?

4 Answers  


What are anonymous functions in Javascript?

0 Answers  


Is javascript hard to learn?

0 Answers  






Why jquery is used instead of javascript?

0 Answers  


Hi Friends, I am new to java, please provide some use full docs, and where can i get basic Java script docs... thanx in advance

8 Answers  


Why we use java script when java also supports validation?

1 Answers  


What is strict mode?

0 Answers  


Describe negative infinity in javascript?

0 Answers  


what is onfocus and onblur events in java script?

2 Answers  


How are event handlers utilized in javascript?

0 Answers  


Categories