title: Why doesn't Javascript handle divide by zero error in a try catch
body: <p>I have the following simple code that throws an error in a try/catch and the error is handled in the catch.  This works as expected, and the error is logged:</p>
  
  <pre><code>try {
      throw new Error('Test Error');
  } catch (err) {
      console.log('Caught Error:');
      console.log(err);
  }
  </code></pre>
  
  <p>Then I try the next example where the code throws an error rather than me just creating a test Error and throwing it, and the error is suppressed, but not handled in the catch:</p>
  
  <pre><code>try {
      let test = 1 / 0;
  } catch (err) {
      console.log('Caught Error:');
      console.log(err);
  }
  </code></pre>
  
  <p>In this second example, nothing is logged.  Why is this?</p>
  
  <p>Regards.</p>