function find() {
console.log("Request handler 'find' was called.");
}
function display() {
console.log("Request handler 'display' was called.");
}
exports.find = find; exports.display = display;
- sometime we call function with parentheses and sometimes we don't use them.
Like in DOM i get why we do no t use it with event Listeners because we want to them to only work when click occurs, But in node like the above example why we didn't used any parentheses?