Frontend Weekly
Published in

Frontend Weekly

I bet your JavaScript const isn’t const at all!

Real talk about how to make your objects immutable!

Martin Adams, via unsplash (CC0)

Look at the title picture, I bet your const variables are as bendy as this red pipe. Learn all the actions to seal your const declared objects and properties in JavaScript to make it immutable!

To create real constants, the use of the const keyword is not sufficient…

--

--

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
Arnold Abraham

Arnold Abraham

896 Followers

German software engineer who helps aspiring coders to learn software development enjoyably where fun & emotions come first to learn on the fly 😉 arnoldcode.com