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 are the Advantages and Disadvantages of JavaScript?
What is the function of delete operator?
What is decodeuri() function?
What are javascript closures?when would you use them?
Can you write a random integers function to print integers with in a range?
What is let keyword in typescript?
What is meant by object oriented programming?
Why is javascript used for web pages?
What does the delete operator do in JavaScript?
Create a new javascript object with the keys of “fname” equal to your first name, “lname” equal to your last name, and “fcolors” equal to and array of 3 of your favorite colors. Assign this object to a variable called “me” and log it to the console.
How to test for bad numbers using javascript?
What does undefined value mean in javascript?