Enum key by value in TypeScript
In enumerations, you can get the element's key by its name:
let current: number = Season.Winter;
console.log(current); // 0
Tell me what the result of running the following code will be:
enum Fruits { Apples, Bananas, Oranges, Grapes };
let myFruit: number = Fruits.Apples;
console.log(myFruit);