×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Javascript
Posted by: Nilesh Yadav
Added: Jul 17, 2017 6:47 AM
Views: 1
Tags: no tags
  1. enum EyeColor {Brown=1, Black=5, Blue=10};
  2.  
  3. var myEyeColor = EyeColor.Brown;
  4.  
  5. console.log(myEyeColor);
  6. console.log(EyeColor[myEyeColor]);