Should I use semicolons in JavaScript? [duplicate]

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.

Leave a Comment