1. Home
  2. Computing & Technology
  3. JavaScript

Try

By Stephen Chapman, About.com

Definition: The try statement defines a block of code that will have special error processing attached to handle any errors that occur during the running of the code in the block. Any errors occuring during the execution of the code will be handled by the appropriate catch and finally blocks. Try is a reserved word and cannot be used for anything other than declaring a try block.
Examples:
try {var oDoc = new ActiveXObject(idList) ...}
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >