title: SyntaxError: Unexpected token const
body: <p>I am creating a web server that will allow users make a request for fortunes, and get the data which I specified in my fortunes.json file. I am using express in node to do this.</p>
  <p>I start my server this way <code>npm run dev</code>, however when I do so, I get the following error:</p>
  <pre><code>SyntaxError: Unexpected token const
      at Module._compile (internal/modules/cjs/loader.js:720:23)
      at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)
      at Module.load (internal/modules/cjs/loader.js:643:32)
      at Function.Module._load (internal/modules/cjs/loader.js:556:12)
      at Function.Module.runMain (internal/modules/cjs/loader.js:839:10)
      at internal/main/run_main_module.js:17:11
  </code></pre>
  <p>Does anybody have an idea what I am doing wrong, my syntax, and packages.json file, etc. all seems to be fine but I am still getting this.</p>
  <p>I am expecting to see &quot;server listening on port 3000&quot; when I run the server however I get a token error.</p>
  <pre><code>const express = require('express');
  
  const port = 3000,
  
  const app = express();
  
  app.get('/fortunes', (req,res) =&gt; {
      console.log('requesting fortunes');
  
  });
  app.listen(port, () =&gt; console.log('Listening on port ${port}'));
  </code></pre>