I am trying to create an object from the required file Account.js. Node.js displays an error on line var test = new account(); : Account is not defined. What am I doing wrong here?
// Account.js
module.exports = function Account() {
console.log("THIS SHOULD WORK");
}
// app.js
require('./Account');
var test = new Account();