directives
Summary
The following table lists JavaScript directives. A directive is a token that adds certain syntactic and semantic restrictions.
Syntax
Return Value
N/A
Examples
The “use strict” directive is one of the most known directives that web browsers support.
(function(){
"use strict"; // The use strict directive
// Strict code goes here ...
})();
Directives
Description | Language Element |
---|---|
use strict | Adds certain syntactic and semantic restrictions. Supported in Internet Explorer 10 and Windows Store apps. |
Attributions
Microsoft Developer Network: Article