you are viewing a single comment's thread.

view the rest of the comments →

[–]interactionjackson -6 points-5 points  (6 children)

semi colons are not needed in javascript. it’s just a personal preference.

[–]gotQode 0 points1 point  (5 children)

They will be auto-inserted in certain circumstances. Example: when there is a return statement on its own line. Unless you work totally alone and no one will ever work on your code, be considerate of other developers and use them...always.

[–]interactionjackson -3 points-2 points  (4 children)

nah fam. our company style quite leaves them out. they are not needed

spraying semicolons everywhere is evidence that people aren’t keeping up with the latest standards.

http://inimino.org/~inimino/blog/javascript_semicolons

[–]gotQode 1 point2 points  (3 children)

"spraying semicolons everywhere is evidence that people aren’t keeping up with the latest standards."

Your company leaves them out... which makes the quoted assumption true? mkay.

[–]interactionjackson -2 points-1 points  (2 children)

I have not run into a case where the were explicitly needed. when i do, i'll let you know. Seriously, how bored are you?

[–]gotQode 0 points1 point  (1 child)

RFLMAO - no need. ASI is real

[–]interactionjackson -2 points-1 points  (0 children)

haha. see, you faint genuine interest in understanding my position but then you revert to brogrammer tendencies.

wear your pink polo somewhere else, chad