NEWBIE question.
I cannot access member function. What am I doing wrong?
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 run in brwoser console it shows :
TypeError:foo.zxc is not a function