The correct syntax for writing comments in JavaScript
If you want your tools to work with you, use JSDoc. It is what Intellisense draws from. It enables TypeScript-like type checking regardless of whether or not you’re actually using TypeScript.
Example from my PDW :
/**
* Singleton pattern.
* @returns the PDW
*/
public static getInstance(): PDW {
if (!PDW.instance) {
PDW.instance = new PDW();
}
return PDW.instance;
}