am new to nodeJs and trying to understand why in this file--app.js--the function main() never gets executed.
If I add a console.log statement before the function, it gets executed, but nothing inside the function gets executed.
I have used the debugger, and sure enough, the function is being skipped altogether.
Why is this occurring? Is there some component of node that I have overlooked?
'use strict';
const sendEmail = require('./send-email');
module.exports = main;
//console.log("This gets executed");
//this function never gets executed!
function main()
{
debugger
...some functionality...
}
via yalpsid eman
No comments:
Post a Comment