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

Parentheses are for grouping. Curly brackets are for creating a new script block. If you would have wanted to write "function foo() {}" in another language, go for curly brackets. It's really not that complex.


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

Search: