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

Exactly, if the comment were outside the function, there would be no issue.



If the function is nested within another function, then the comments to document the inner function are going to exist inside the outer function. And having nested functions is a very common scenario in JS.




Join us for AI Startup School this June 16-17 in San Francisco!

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

Search: