Javascript - Strict Mode


Strict mode forces the programmer to code properly (in a matter of speaking). It removes some older parts of JavaScript. Check this for more details.

To enable strict mode, add this to the top of the JavaScript file or function body:

'use strict';