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 |
How do I enable cookies and javascript?
write a programme to solve a formula for compound interest using html tags. I want to know how a formula containing degree (raise to the power) can be solved.
What is the instanceof operator in JavaScript?
What is the difference between typeof and instanceof operators in Javascript?
How are tag positions used in javascript?
Name some of the JavaScript features?
Can an anonymous function be assigned to a variable?
How do you extend classes Code snippet: const circle = { radius: 20, diameter() { return this.radius * 2; }, perimeter: () => 2 * Math.PI * this.radius };
What are nodes in javascript?
What is a scope in javascript?
Are all javascript variables global?
Difference between window, document, and screen in Javascript?