view source
JavaScript Strict Mode
Strict mode in JavaScript causes your code to be interpreted under a stricter set of rules. JavaScript will nag you more and throw exceptions for things it previously had no issue with. This may not sound like a good time, but your code will be better for it. Strict mode is like a built-in linter, exposing bad practices and potential mistakes before they turn into hard-to-find bugs.
Advertisement