问题
Java has Javadoc, Python has docstring. Is there something similar in JavaScript?
回答1:
The most commonly used is JsDoc (https://jsdoc.app/).
This is also a tool that generates documentation from your sources, commented with JsDoc style: https://github.com/jsdoc3/jsdoc
来源:https://stackoverflow.com/questions/18529526/is-there-a-convention-on-how-to-document-a-javascript-file-with-comments-like-f