The Startup
Published in

The Startup

Implement Enum in Vanilla JavaScript using Proxy class

While working on JavaScript and Typescript at the same time, I miss some of the basic features of Typescript in Plain JavaScript. One of the cool features of Typescript is Enum.

Enum helps you to create a state object(Enums: constant with fixed values).

Photo by Fernando Hernandez on Unsplash

Think about that you are working on a file downloading Application. You need a minimum of…

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Deepak Vishwakarma

Deepak Vishwakarma

I am a polyglot Blockchain Developer. Mainly work on JavaScript and Nodejs. I work for a multinational Bank as Tech Lead to define the best architecture.