I have just started nodejs and following a video tutorial series on Lynda.com and after finishing few sessions, I have the following question :
When I write
var softly = function softly(message){
console.log('proclaiming : '+message);
};
var loudly = function loudly(message){
console.log('PROCLAIMING : '+message);
};
exports.softly = softly;
exports.loudly = loudly;
How the mapping of property softly exports.softly = softly;
is happening, as there is a variable as well as a function with name softly
?