fork download
  1. Season = Object.freeze({
  2. Summer: 1,
  3. Fall: 2,
  4. Winter: 3,
  5. Spring: 4
  6. });
  7.  
  8. let summer = Season.Summer;
  9. let winter = Season.Winter;
  10.  
  11. Season.Summer = 5;
  12.  
  13. console.log(`summer is ${summer}`);
  14. console.log(`winter is ${winter}`);
Success #stdin #stdout 0.05s 16436KB
stdin
Standard input is empty
stdout
summer is 1
winter is 3