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 will be the output of the code below? var Y = 1; if (function F(){}) { y += Typeof F;</span> } console.log(y);
Write the code to maximize an image using javaScript?
How can I set up my own javascript error handler?
Is not a function error in javascript?
what data type javascript supports?
How do you write an if statement in javascript?
Can you run javascript in notepad?
How to write html code dynamically using JavaScript?
Explain how to detect the operating system on the client machine?
Can you assign an anonymous function to a variable?
What is a javascript code?
What is eval() in javascript?