What is “ use strict; ” in JavaScript, and what does it do?

If you have working with JavaScript over the last few years you will have no doubt come across this little snippet [sourcecode language="javascript" wraplines="true" highlight=""] "use strict"; [/sourcecode] Strict Mode is a new feature in ECMAScript 5 that allows you to place a program, or a function, in a "strict" operating context. This strict context prevents certain actions from being taken and throws more exceptions. (more…)

By Manny, ago