I am in node.js. I have two files.
winston.js:
class Winston {
constructor(count) {
this.count = count
}
}
start.js
const winston = require('./winston')
let myWinston = new Winston(1)
when I run the start.js,(node ./start.js)
I get an error:
ReferenceError: Winston is not defined
Any one know how I should include the Winston file?