how to check if javascrupt is running in strict mode or not code example
Example: Turn on modern JS by adding use strict to your script
// Non-strict code...
(function(){
"use strict";
// Define your library strictly...
})();
// Non-strict code...