what are the others ways insted of using strict mode code example
Example 1: use strict javascript
function doSomething() {
'use strict';
...
}
Example 2: Turn on modern JS by adding use strict to your script
// Non-strict code...
(function(){
"use strict";
// Define your library strictly...
})();
// Non-strict code...