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

No, the ! is to turn the function into an expression, and thus guarantee that it is executed. It is meant to protect against concatenating with JavaScript that is missing a semi-colon at the end of its file. This is extreme minutiae and why I said you shouldn't use that code to learn.


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

Search: