DEV Community

loading...

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

Collapse
stereobooster profile image
stereobooster

The issue here is that there are 2 similar but different concepts: referential transparency (const) vs immutability (Object.freeze or even better recursive Object.freeze)