1. Home
  2. Computing & Technology
  3. JavaScript

Try

By , About.com Guide

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

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

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