title: What is the syntax to export a function from a module in Node.js?
body: <p>What is the syntax to export a function from a module in Node.js?</p>
  
  <pre><code>function foo() {}
  function bar() {}
  
  export foo; // I don't think this is valid?
  export default bar;
  </code></pre>