Use Strict
description anyone
use strictis helpful or usefull. All of my jshint's always come out with the following (here's my screw ie script)
var screwIE;
screwIE = function() {
if (navigator.appName === "Microsoft Internet Explorer" ? document.URL.indexOf("http://itom07.com/sorry") === -1 : void 0) {
return window.location = "http://itom07.com/sorry";
}
};
screwIE();
(I know its hackish but I was looking into different ways to write it. (besides the point)
Output:
Line 4: if (navigator.appName === "Microsoft Internet Explorer" ? document.URL.indexOf("http://itom07.com/sorry") === -1 : void 0) {
Missing "use strict" statement.






Cartoon Clouds
Mountains
Sunrise
Clouds
Green Clouds
None

















Help