JavaScript: Difference between revisions

Content deleted Content added
Line 340:
In addition, simple errors in syntax tend to generate complex, unrelated error messages, so that deciphering a simple misplaced quotation mark can require many executions and tests to find the correct place.
Newer versions of JavaScript (as used in [[Internet Explorer]] 5 and [[Netscape (web browser)|Netscape]] 6) include a <tt>try ... catch</tt> error handling statement. Purloined from the[[JavaJava_programming_language]], this is intended to help with run-time errors but does so with mixed results.
 
The <code>try ... catch ... finally</code> statement catches [[exception]]s resulting from an error or a [[throw statement]]. Its syntax is as follows: