Strict Mode - patrickcole/learning GitHub Wiki

JavaScript Strict Mode

  • Provided as an "opt-in" declaration to utilize a stricter parser rules
  • The syntax is:

"use strict"

// must be declared as the first piece of code in .js files