Exceptions in JavaScript
JavaScript’s latest version added exception-handling capabilities. It provides try, catch and finally blocks to handle the exceptions. Syntax of a try block with catch block: try{ //block of statements }catch(exception_var){ } Syntax of a try block with a final block: try{ //block of statements } finally { } Syntax of try block with catch and … Read more