Enums

// enum ΠΏΠΎ ΡƒΠΌΠΎΠ»Ρ‡Π°Π½ΠΈΡŽ number
enum Membership {
    Simple,
    Standart,
    Premium
}

const membership = Membership.Standart
// Reverse Enum
const membershipReverse = Membership[membership]  // 'Standart'



enum SocialMedia {
    VK = 'VK',
    FACEBOOK = 'FACEBOOK'
}

Last updated