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*

12
  • 2
    "years of recommended practice" refer a question of blacklisted SO polls tag which unlikely makes it authoritative to support any kind of opinion Commented Mar 29, 2012 at 12:42
  • 30
    @gnat just because people hate the question being on SO doesn't make it a less valid source of people's opinion. Commented Mar 29, 2012 at 12:58
  • 4
    @gnat Questions that are "officially considered inappopriate on StackOverflow" are sometimes considered very authoritative by the expert community. Sad but true. Commented Apr 4, 2012 at 17:15
  • 8
    @gnat The blacklisted question actually has some very interesting examples of why omitting the ; can break your code. So I'd say it's a useful reference for this question. Commented May 13, 2013 at 12:22
  • 5
    @RickO'Shea overwhelmed by common sloppiness. The reason why I use semicolons is that it is ridiculously easy, it makes line breaks irrelevant at runtime, and allows me not to have to worry about there being "edge cases", about which ones they are, in which JavaScript versions, this kind of things. So you are wrong about my reason for using semicolons. And your point would also apply to using variable names like a instead of meaningful names, which are also "unnecessary" in the sense in which you are using the word. "Unnecessary" is NOT a reason not do do something. Commented Jan 12, 2018 at 16:59