JavaScript syntax: Difference between revisions

Content deleted Content added
Line 512:
catch (err) {
// handle errors
}
 
In fact, the <code>catch</code> part may also be omitted:
 
try {
statements
}
finally {
// ignore potential errors and just go directly to finally
}