MSDN Library

use strict Directive

Restricts the use of some features in JavaScript.

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;

Community Additions

Show:
© 2016 Microsoft