Hacker News new | comments | show | ask | jobs | submit login

Does the preceding comma style not get in the way of JavaScript's auto semi-colon insertion?

It appears it doesn't, but I'd like to know WHY it doesn't.

Do Javascript parsers look at the next line before judging whether or not to treat the line-ending as an implicit semicolon?

(Do all parsers treat it in the same way? Is it part of the spec?)

Yes. Yes. Yes.

Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | DMCA | Apply to YC | Contact