Answers for "js module.exports documentation comments"

1

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
Posted by: Guest on October-05-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language