javascript es2015 methods in strict mode code example
Example 1: use strict javascript
function doSomething() {
'use strict';
...
}
Example 2: use strict javascript
// Non-strict code...
(function(){
"use strict";
// Define your library strictly...
})();
// Non-strict code...