Advertisement
teiba

JavaScript try and catch

Oct 1st, 2016
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1.  
  2. The try statement allows you to define a block of code to be tested for errors while it is being executed.
  3.  
  4. The catch statement allows you to define a block of code to be executed, if an error occurs in the try block.
  5.  
  6. The JavaScript statements try and catch come in pairs
  7. download file code on mediafire http://ow.ly/291o304KIAk
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement