Enumerations

//In Javascript there are no enum type
Season = Object.freeze({
    Summer: 0,
    Fall: 1,
    Winter: 2,
    Spring: 3
});

Status = Object.freeze({
    Busy: "Busy",
    Available: "Available"
});

Switch = Object.freeze({
    On: true,
    Off: false
});

let winter = Season.Winter;
//winter is 2

let available = Status.Available;
//available is "Available"

let on = Switch.On;
//on is true

console.log(`winter is ${winter}`);
console.log(`available is "${available}"`);
console.log(`on is ${on}`);