Skip to main content
3 of 5
added 232 characters in body; added 255 characters in body
seth
  • 37.3k
  • 7
  • 63
  • 58

It's a new feature of ECMAScript5. John Resig wrote up a nice summary of it.

It's just a string you put in your js files (either at the top of your file or inside of a function) that looks like this:

"use strict"; 

Putting it in your code now shouldn't cause any problems with current browsers as it's just a string. It may cause problems with your code in the future if your code violates the pragma. For instance, if you currently have foo = "bar" without defining foo first, your code will start failing...which is a good thing in my opinion.

seth
  • 37.3k
  • 7
  • 63
  • 58