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

runw picture runw · Aug 30, 2013 · Viewed 25.8k times · Source

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

Answer

Tibos picture Tibos · Aug 30, 2013

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