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
Can I write javascript in notepad?
What is jscript used for?
all possible test cases for normal number field,name field date field,check box,
How to access the value of a textbox using javascript?
What is spread syntax?
What are the types of variables in javascript?
Which keyword is used to print the text in the screen?
accessdenied javanet disconnet
Create an array in javascript with a list of 4 colors, assign that array to the variable, ‘colors’.
What Is The Disadvantages Using InnerHTML In JavaScript?
What is the difference between typeof and instanceof operators in Javascript?
How do I open javascript in chrome?
How to create array in JavaScript?
What is javascript in simple terms?
What's the difference methods get and post in html forms?