Answer Posted / 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 View All Answers
What are javascript closures?when would you use them?
What is the meaning of callback function?
Between JavaScript and an ASP script, which is faster?
What is client side programming?
What is the purpose of 'this' operator in JavaScript?
List few advantages of using javascript?
What do you mean by script?
How can you detect the client operating system using javascript?
Which keyword is used to print the text in the screen?
What is the use of 'bind' method in JavaScript?
What is the potential disadvantage of using a sticky session?
What is object in javascript?
How do you target a specific frame from a hyperlink?
What is the difference between undefined and not defined in JavaScript?
What are the difference between undefined and not defined in javascript?