title: Problem with "Syntax error: unexpected token 'let'
body: <p>I'm using AptanaStudio 3 and I'm getting an error with some of my javascript code:</p>
  <blockquote>
  <p>Syntax error: unexpected token 'let'.</p>
  </blockquote>
  <p>How do I fix this? Maybe there is some way around using <code>let</code>? I don't know. I've just started with Javascript and I'm a bit confused. Maybe this is only an AptanaStudio 3 issue?</p>
  <pre><code>const para = document.querySelector('p');
  
  para.addEventListener('click', updateName);
  
  function updateName() {
      let name = prompt('Enter a new name');
      para.textContent = 'Player1:' + name;
  }
  </code></pre>
  <p>This Javascript code adds some dynamic behaviour to my html/css code.</p>