Should I use semicolons in JavaScript? [duplicate]
Solution 1:
Use them. Use them constantly.
It's far too easy to have something break later on because you neglected a semi-colon and it lost the whitespace which saved it before in a compression/generation/eval parse.
Solution 2:
I'd say use them all the time; most code you'll encounter uses them, and consistency is your friend.