I_Jemin

Loading a Module

console.log(module); // module is not global
\ No newline at end of file
var logger = require('./logger')
logger.log('message');
\ No newline at end of file
......
var url = 'http://mylogger.io/log';
function log(message) {
// Send an HTTP request
console.log(message);
}
module.exports.log = log;
\ No newline at end of file