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

Yes, actually it does. A named function expression and a function declaration are distinct concepts. The latter is function-hoisted (the whole body goes to the top), whereas the former is only var-hoisted (the body remains in place).


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

Search: