|
|
|
Try...Catch StatementThe try...catch statement allows you to test a block of code for errors. The try block contains the code to be run, and the catch block contains the code to be executed if an error occurs. Syntax
Note that try...catch is written in lowercase letters. Using uppercase letters will generate a JavaScript error! |
|