Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is an enum



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

Post New Answer

More JavaScript Interview Questions

How do I enable cookies and javascript?

0 Answers  


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.

1 Answers  


What is the instanceof operator in JavaScript?

0 Answers  


What is the difference between typeof and instanceof operators in Javascript?

0 Answers  


How are tag positions used in javascript?

0 Answers  


Name some of the JavaScript features?

0 Answers  


Can an anonymous function be assigned to a variable?

0 Answers  


How do you extend classes Code snippet: const circle = { radius: 20, diameter() { return this.radius * 2; }, perimeter: () => 2 * Math.PI * this.radius };

1 Answers  


What are nodes in javascript?

0 Answers  


What is a scope in javascript?

0 Answers  


Are all javascript variables global?

0 Answers  


Difference between window, document, and screen in Javascript?

0 Answers  


Categories