title: Whenever I try to compile javascript code I get a syntax error
body: <p>Whenever I try to run my code I keep getting a syntax error the specifics of the error are here: <a href="https://i.stack.imgur.com/H73LR.png" rel="nofollow noreferrer">https://i.stack.imgur.com/H73LR.png</a></p>
  <p>I don't think it has to do anything with the file format because it is in a .js file I also ran a</p>
  <p>antivirus to see if that was causing it( a site online said viruses could cause this error) my code is as follows:</p>
  <pre><code>const firstName = 'William'; 
  const lastname = 'Johnson';
  
  let val;
  
  val = firstName + lastname;
  
  console.log(val)```
  
  
  </code></pre>