catching syntax errors in javascript?
<p><a href="http://www.devshed.com/c/a/JavaScript/JavaScript-Exception-Handling/4/" rel="nofollow">http://www.devshed.com/c/a/JavaScript/JavaScript-Exception-Handling/4/</a> shows an example whereby we can catch javascript syntax errors. I really don't get it, from what i know, syntax errors just cant be caught (they will cause the entire program to stop running, in fact the program can't even run since its a syntax error). </p>

<p>So my question is can javascript syntax errors even be caught? and if so, what's an example code that catches it?</p>
