Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Psst, the semicolon comment is funny because JavaScript doesn't actually require semicolons at the end of each line. It will automatically insert them for you if missing, which has led to a number of hard-to-find bugs.

Its curly-brace behavior, however, is pretty much exactly like C.



Oh. I feel kind of stupid now.


You actually just lost 3 measurable IQ points by learning about semicolon insertion, so don't feel too bad.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: