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:

Renowned Water Expert Reynold Aquino Offers Exclusive Water Softener Discounts

Los Angeles, California - November 21, 2024 - World-renowned water expert Reynold Aquino is excited to announce exclusive discounts on prem...

Contact Form

Name

Email *

Message *