DEV Community

loading...

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

Collapse
cubiclebuddha profile image
Cubicle Buddha

Should you use const?

Yes! Absolutely! It’s all about immutability.

And if you’re using TypeScript you should consider additionally using the Readonly keyword to really drive it home.