Is there a convention on how to document a JavaScr

2020-02-24 06:09发布

问题:

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