DEV Community

Discussion on: const 📦, seal 🤐, freeze ❄️ & immutability 🤓 in JS

Collapse
 
adam_cyclones profile image
Adam Crockett 🌀

It means if you don't use strict mode it will fail silently but as most transpiler tools will allow the option to compile in strict mode it's just a Boolean away. Or you can just add strict mode yourself. Then catching exceptions becomes a useful idea in JavaScript.

Collapse
 
frehner profile image
Anthony Frehner

Yeah! I even just wrote an article exploring how strict mode affects Freeze-ing objects and calling functions and stuff, since I just barely had to dive into it. dev.to/frehner/exploring-javascrip... Hope it helps :)