Run ❯
Get your
own
website
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
enum CardinalDirections { North = 1, East, South, West }; // logs 1 since we initialized the first value to something other than '0' console.log(CardinalDirections.North); // logs 4 as it continued on from the initial '1' value console.log(CardinalDirections.West);
1 4