Yes, try/ catchprovides a way to capture errors, although, unlike On Error Resume Next, you decide to deal with an error in the block catchor not at all.
, VB :
on error resume next
DoSomethingUnsavory
if err.number <> 0 then ...
on error goto 0 ' you DO do this, right?
JS :
try {
doSomethingUnsavory();
}
catch (e) {
}
, , yadda yadda. . !