1function foo() {}
2function bar() {}
3
4// To export above functions:
5module.exports = foo;
6module.exports = bar;
7
8// And in the file you want to use these functions,
9// import them like this:
10const foo = require('./module/path');
11const bar = require('./module/path');
12
13
1const getName = () => {
2 return 'Jim';
3};
4
5const getLocation = () => {
6 return 'Munich';
7};
8
9const dateOfBirth = '12.01.1982';
10
11exports.getName = getName;
12exports.getLocation = getLocation;
13exports.dob = dateOfBirth;
14