DEV Community

loading...

Discussion on: Confused by JavaScript's const? Me too!

Collapse
michaeljota profile image
Michael De Abreu

I could recommend that you use typescript instead. If you use readonly modifiers and const assertion you can have immutable code in development, and better performance in production.