Java has Javadoc, Python has docstring. Is there something similar in JavaScript?
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