what is use strict in node code example
Example 1: use strict javascript
// File: myscript.js
'use strict';
var a = 2;
....
Example 2: use strict javascript
function doSomething() {
'use strict';
...
}
// File: myscript.js
'use strict';
var a = 2;
....
function doSomething() {
'use strict';
...
}