4 ms·
I wonder what performance gains/losses you would experience if you had the comment outside the function block, before the function declaration.
by xlm1717 11y ago
I wonder what performance gains/losses you would experience if you had the comment outside the function block, before the function declaration.
- STRML 11y agoExactly, if the comment were outside the function, there would be no issue.
- WorldWideWayne 11y agoIf 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.