Take the 2-minute tour ×

Possible Duplicates:
Do you recommend using semicolons after every statement in JavaScript?
Why use semicolon?

What are the ups and downs of using semicolons to end commands in JavaSript? What are the arguments for and against doing so?

share|improve this question
add comment

marked as duplicate by YOU, Dean Harding, Sarfraz, Andy E, Greg Hewgill Jun 6 '10 at 9:51


1 Answer

up vote 1 down vote accepted

You definitely need use semicolons to end commands in js. It is considered as a good programming habit. Statements without semicolons would be difficult to read and sometimes behavior wired.

share|improve this answer
add comment
