title: Export javascript object to be used as new instance
body: <p>So I have my <code>menu.js</code> file and inside I have a <code>Menu</code> object as shown below:</p>
  <pre><code>let Menu = {
    elt: null,
    settings: {
      title: '',
    }
  }
  export { Menu };
  </code></pre>
  <p>Now, I'm wanting to use the menu object to build another menu in another file, as shown here:</p>
  <pre><code>const test = new Menu('', {
    // Empty
  });
  </code></pre>
  <p>For some reason, it's not letting me use the export, I'm also tried <code>export default Menu;</code> with no luck, it keeps coming back with the following error:</p>
  <p><a href="https://i.stack.imgur.com/i9yUX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/i9yUX.png" alt="enter image description here" /></a></p>
  <p>Does anyone know the proper way to instantiate an object literal?</p>