export default function node js 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: export function javascript
// module "mon-module.js"
export default function cube(x) {
return x * x * x;
}