try catch finaly code example
Example 1: blank catch js
try {
try_statements
}
[catch [(exception_var)] {
catch_statements
}]
[finally {
finally_statements
}]
Example 2: try catch javascript
try {
// code may cause error
} catch(error){
// code to handle error
}