1 out of 1 rated this helpful - Rate this topic

use strict Directive

JavaScript - Internet Explorer 10

Restricts the use of some features in JavaScript. Supported in Internet Explorer 10 and Windows Store apps only.

use strict

The following code causes a syntax error because in strict mode all variables must be declared with var.

"use strict";
function testFunction(){
   var testvar = 4;
    return testvar;
}
intvar = 5;

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.