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

What are the Advantages and Disadvantages of JavaScript?

0 Answers  


What is the function of delete operator?

0 Answers  


What is decodeuri() function?

0 Answers  


What are javascript closures?when would you use them?

0 Answers  


Can you write a random integers function to print integers with in a range?

1 Answers  


What is let keyword in typescript?

0 Answers  


What is meant by object oriented programming?

0 Answers  


Why is javascript used for web pages?

0 Answers  


What does the delete operator do in JavaScript?

1 Answers  


Create a new javascript object with the keys of “fname” equal to your first name, “lname” equal to your last name, and “fcolors” equal to and array of 3 of your favorite colors. Assign this object to a variable called “me” and log it to the console.

0 Answers  


How to test for bad numbers using javascript?

0 Answers  


What does undefined value mean in javascript?

0 Answers  


Categories