Is there a convention on how to document a JavaScript file with comments? Like function signatures, examples, etc

前端 未结 1 1569
野趣味
野趣味 2020-12-29 17:51

Java has Javadoc, Python has docstring. Is there something similar in JavaScript?

相关标签:
1条回答
  • 2020-12-29 18:28

    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

    0 讨论(0)
提交回复
热议问题