NEWBIE question.
I'm having trouble accessing a member function. What could be causing this issue?
index.js ->
var abc = require('./def');
var foo = new abc();
foo.zxc();
def.js ->
var bar = function(){
// do something
var zxc = function(){
// do something
}
}
module.exports = def;
When I try to run it in the browser console, I get the following error:
TypeError:foo.zxc is not a function