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:

When Bad People Make Good Art

I offer six guidelines on cancel culture ͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏...

Contact Form

Name

Email *

Message *