Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let foo=45;
- module.exports = { foo };
- let func=require('./function.js');
- console.log(func.foo); // Now you can see 45
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement