Rules

Secret ingredients to quality software

Edit
Info

Do you always use semicolons on your JS file?

Last updated by William Yin on 24 Aug 2015 01:08 am (over 5 years ago) See History

For most of the cases, it quite rare to have problems when omitting semicolons, but there are a few scenarios where they are required to prevent syntax errors or resolve code ambiguities.

To save yourself time and troubles, it's highly recommended that you just place them all the time. More than avoiding you to have some headaches, your code will also look a lot more consistent.

Tiago AraujoTiago Araujo

We open source. This page is on GitHub