Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
STRML
· 11y ago · 0 comments
Exactly, if the comment were outside the function, there would be no issue.
Comments
[–]
WorldWideWayne
11y ago
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.