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 |
Can you put javascript in html?
How do I find javascript?
What is the naming conventions for the variables in javascript?
What is difference between callback and promise?
What is event target in javascript?
What is the function of delete operator?
write a program to generte a harmonic series 1+1/2+1/3+1/4+1/5 upto 15 terms.
Name the datatypes of javascript?
Explain promise in javascript?
What's the date object using javascript?
Is javascript easier than java?
What is console.log()?