JavaScript syntax: Difference between revisions

Content deleted Content added
Line 1,393:
 
==Exception handling==
JavaScript includes a <code>try ... catch ... finally</code> [[exception handling]] statement to handle run-time errors.
 
The <code>try ... catch ... finally</code> statement catches [[exception handling|exceptions]] resulting from an error or a throw statement. Its syntax is as follows:
 
<syntaxhighlight lang="JavaScript">