Jason Orendorff looked into the JS spec, in detail …
JavaScript is rather hard to parse. Here is an in-depth accounting of its syntactic quirks, with an eye toward actually implementing a parser from scratch.
One quirk most JS devs have will have certainly heard of is Automatic Semicolon Insertion (ASI).