Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@AliN11
Created July 21, 2019 09:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AliN11/39b79c6c562a2b1469a645e0e486de8e to your computer and use it in GitHub Desktop.
Save AliN11/39b79c6c562a2b1469a645e0e486de8e to your computer and use it in GitHub Desktop.
enum Colors {Red, Green, Blue};
console.log(typeof Colors); // object
console.log(Colors);
/*
{
'0': 'Red',
'1': 'Green',
'2': 'Blue',
Red: 0,
Green: 1,
Blue: 2
}
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment