-
-
Notifications
You must be signed in to change notification settings - Fork 32.7k
Closed
Labels
questionIssues that look for answers.Issues that look for answers.
Description
i have three files: is not working,
when i am running index.js file its giving me an error in file Test2.js TypeError: one.oneFunction is not a function
index.js File:
var test = require('./Test');
test.oneFunction(' from index ');
Test.js File:
var two = require('./Test2');
module.exports = {
oneFunction: function(from) {
two.twoFunction(' one ');
console.log('function two from '+from);
}
};
Test2.js File:
var one = require('./Test');
module.exports = {
twoFunction: function(from) {
one.oneFunction(' two ');
console.log('function one from '+from);
}
};
AmitKB
Metadata
Metadata
Assignees
Labels
questionIssues that look for answers.Issues that look for answers.