-
-
Save sj82516/1227bb95de39c2d9d65a3c0fb4b715b8 to your computer and use it in GitHub Desktop.
Nodejs Dependency Circulation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
data: "This is a", | |
}; | |
const b = require('./b.js'); | |
console.log(b.data); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
data: "This is b", | |
}; | |
const a = require('./a.js'); | |
console.log(a.data); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const a = require('./a'); | |
const b = require('./b'); | |
console.log('This is main', a); | |
console.log('This is main', b); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment