title: how do I export/import a variable in nodejs?
body: <p>How do I export/import a variable in nodejs?</p>
  <p>I've tried export and import but it says that its supposed to be a module and when I change the type to module in the json file it says that require is not defined.</p>