title: try and catch javascript unexpected identifier
body: <p>i'm tryin to identify the error i get in a javascrip function in my webpage, so i added</p>
  
  <pre><code>function guardarMisDatos() throws Exception {
  try{
  ...
  } catch (Exception e){
  alert("error: ", e);
  }
  </code></pre>
  
  <p>but when i open the page, the chrome web console gives me error at</p>
  
  <pre><code>function guardarMisDatos() throws Exception {
  </code></pre>
  
  <p>and the error type is "Uncaught syntaxerror: unexpected identifier"
  where is the error? is it a correct way to check way the function is not fired on the first click?</p>