DEV Community

Discussion on: What you need to know about Javascript's Automatic Semi-colon Insertion

Collapse
 
bgadrian profile image
Adrian B.G.

There are some caveats, but if you do not add new line in places that other languages would throw a compiler error it's ok.

I was a strong advocate of using semi colons in JavaScript, until I started learning Go (and omit them). Then I count how many semi colons I wrote in my previous small JS project (many thousands) and realized how much time I wasted on typing ๐Ÿ˜.