So I'm working in node.js (beginner) and I'm trying to use variables which are in a different script. What I've found is that sometimes the variable comes back as undefined. For instance:
//Doesnt like this
var peaches = 'Peaches';
exports.peaches = 'Peaches'
var peaches = 'Peaches'; exports.peaches = peaches;
In your first "method" you are not actually exporting anything.
of your modules.