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?
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?
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.