This page is Ready to Use

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

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

DescriptionLanguage Element
use strictAdds certain syntactic and semantic restrictions. Supported in Internet Explorer 10 and Windows Store apps.

Attributions

  • Microsoft Developer Network: Article