creating and loading a module nodejs

//app.js
var logger = require('./logger.js');logger('edward');

//logger.js

var url = 'edward.io';function log(message) {
    console.log(message)
}

module.exports = log;

No comments:

Is this an Israeli Sniper Targeting a Journalist

Watch now (6 mins) | Probably not, and I can prove it with math ͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ...

Contact Form

Name

Email *

Message *