JavaScript Semi-Colons

I was readingĀ this which is an article on forced coding standards in industry and how having a little smart code freedom can result in better code. The author references JavaScript Semi-Colons. I suggest reading up on Automatic Semicolon Insertion if the javascript language interests you, the author goes over the way JavaScript is parsed.

Even if you use semicolons at the end of every statement, some constructs parse in non-obvious ways. Regardless of your preferences in semicolon usage, you must know the rules to write JavaScript professionally. If you remember a few simple rules, all of which are explained here, you will be able to understand how any program you might encounter will be parsed, and will be an expert on JavaScript automatic semicolon insertion, or ASI.

The JavaScript Garden also explains Automatic Semicolon Insertion (ASI).