Hacker News new | past | comments | ask | show | jobs | submit login

I agree use semicolons. Or longer:

Because JavaScript allows semicolon insertion some syntax is parsed in a way which is surprising to those skilled with other curly brace languages. This can causes problems if you do or don't try to leave out semicolons.

The solution to avoiding unexpected behavior is to run JSLint. JSLint will insist that you use semicolons. So you will have to use semicolons.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: