Strict mode in JavaScript tightens the rules for certain behaviors. You can execute JavaScript code in strict mode by using the -use strict- directive.
- Code: http://codepen.io/beaucarnes/pen/OmJLaR?editors=00100
- Resource: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode
- Beau Carnes on
Kintario: Why do JavaScript courses dont mention that it should be mandatory to use -strict mode-, why do IDE dont include this mode in js files by default and in fact why do browsers even allow execution of JavaScript without strict mode??? It literally helps so much to write a good quality code Date: 2022-03-14