lpt
0
Q:

js module.exports documentation comments

module.js
---------
/**
* This comment will work :)
*/
function main(){
/**
* This comment won't work :(
*/
}
module.exports = main;
__________________________________________________
another.js
----------
const main = require('./module.js');

main(); // This will show the comment when hover
1

New to Communities?

Join the community