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 you explain the difference between call and apply?
What is null in programming?
What is use of settimeout function in javascript?
Will javascript be replaced?
What is the use of a boolean object in javascript?
How to call a function inside a function in javascript?
Explain the for-in loop?
How to convert a string to a number using javascript?
Is a hash table an array?
Program to return the address family of a socket
What is the prototype object in javascript and how it is used?
What is the microsoft version of javascript?
What is the data type of variables of in javascript?
What are JavaScript Cookies?
what is a code in vb amount display in words