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

Coffeescript returns the last line always, all you needed to do was add a 'return null' (or just 'return') as the last line in the function.

You have to be explicit in Vanilla JS to return things or it just return null. Coffeescript explicitly returns the last line every time.




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

Search: