Javascript has strict mode.
Strict mode is a different parsing and execution model for JavaScript.
To enable strict mode for an entire script, include the following at the top:
"use strict";
To specify just a function to execute in strict mode by including the pragma
at the top of the function body:
function doSomething() { "use strict"; // function body }
Strict mode changes many parts of how JavaScript is executed.