title: Visual Studio Code 'const' can only be used in a .ts file
body: <p>I am getting this error while trying a write a basic JS in Visual Studio Code.</p>
  
  <p>Already tried changing the settings.json ( $workspace/.vscode/settings.json ) but it <strong>doesn't</strong> work.</p>
  
  <pre><code>  {
       "javascript.validate.enable": false
    }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/RG6cK.png" rel="noreferrer"><img src="https://i.stack.imgur.com/RG6cK.png" alt="enter image description here"></a></p>