common JS import and export statements code example
Example 1: js export multiple functions
function foo() { console.log('foo') }
function bar() { console.log('bar') }
function baz() { foo(); bar() }
export default {foo, bar, baz}
Example 2: node package.json type module
node --experimental-modules app.js