JavaScript Enums don’t actually exist, but you can create them yourself if you know what you’re doing. Enums in JavaScript are a great way to control inputs to a select number of options. In this demo, we’ll show how to create an enum to keep track of states in a game.
☞ JavaScript Programming Tutorial Full Course for Beginners
☞ Learn JavaScript - Become a Zero to Hero
☞ Javascript Project Tutorial: Budget App
☞ E-Commerce JavaScript Tutorial - Shopping Cart from Scratch