Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // a.js
- module.exports = function() {
- console.log('calling from a.js');
- }
- console.log("this runs in a.js");
- // b.js
- var a = require('./a');
- function b() {
- console.log('calling from b.js');
- a();
- }
- b();
Advertisement
Add Comment
Please, Sign In to add comment