strickt mode in js code example
Example 1: javascript use strict
// Whole-Script Strict Mode Syntax
'use strict';
var v = "Hi! I'm a strict mode script!";
Example 2: use strict javascript
function doSomething() {
'use strict';
...
}
// Whole-Script Strict Mode Syntax
'use strict';
var v = "Hi! I'm a strict mode script!";
function doSomething() {
'use strict';
...
}