This post isn’t intended to reopen the age-old JavaScript debate, but merely to serve as a reference when people ask why JavaScript Standard Style enforces a “never use semicolons” rule. The idea that you can “always use semicolons” and not worry a...

Markdown supported · ⌘↵ to post
Peter Scheler
JS enthusiast
Some little addition: If you really never want to use semicolons you can also write
void [1, 2, 3].forEach(bar)instead of
;[1, 2, 3].forEach(bar)