Why Do We Need Strict Mode in JavaScript?
What is it? What is it for? And why should we use it?
Published in
8 min readNov 10, 2019
Strict mode is an important part of modern JavaScript. It is a mode that lets us opt-in to a more restricted syntax of JavaScript.
The semantics of strict mode is different from the old “sloppy mode” of JavaScript that has a looser syntax and makes errors in code that are…