try catch in javascript
<p>When i try this code in javascript, why doesn't it catch the error on the misspelling on <code>XMLHttpRequest</code>?</p>

<pre><code>  try {
   var x= new XMLHdfattpRequest();
  } catch (e){
   alert(e);
  }
</code></pre>
