Recently I ran some of my javascript code through Crockford's JSLint, and it gave the following error:
Problem at line 1 character 1: Missing "use strict" statement.
Doing some searching, I realized that some people add "use strict";
into their javascript code. And once I added the statement, the error stopped appearing. Unfortunately, google did not reveal much of the history behind this string statement. Certainly it must have something to do with how the javascript is interpreted by the browser, but I have no idea what the effect would be.
So what is "use strict";
all about, what does it imply, and is it still relevant?
Do any of the current browsers respond to the "use strict" string or is it for future use?
Thanks!