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*

2
  • 1
    Semi-colons are optional, but your code will become invalid if you run it through a JavaScript minimizer such as the YUI Compressor. Therefore, its a good practice to always include semi-colons. Commented Sep 3, 2008 at 18:26
  • I'm pretty sure that will break on IE. While it may be valid javascript, you probably have to add the semicolon because of that anyway Commented Sep 3, 2008 at 20:36