Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 10
    The example for 11. is unclear, it's not clear what the difference in strict mode is. Commented Mar 11, 2021 at 23:36
  • 1
    The formulation "Disallows global variables" is misleading. Global variables can still be used by using var, let or const in a global scope or by assigning to window.something (using window explicitly), what's not allowed is implicitly adding properties to window by doing something = somethingElse where something is undeclared (without explicitly using window). Commented Oct 27, 2022 at 16:06
  • 2
    This is a much better answer than the accepted one, as it goes straight into the details without the meta commentary on John Resig's post. Commented Feb 6, 2024 at 4:42