try...catch...finally

Term side of the Card
Topic: Syntax
Unit title: try...catch...finally
Categories: Syntax, Statement
Explanation side of the Card

Explanation: The statement used for handling exceptions. The `try` block contains code that may throw an error. The `catch` block executes if an error occurs, enabling to handle the error. The `finally` block contains code that runs after the `try` and `catch` blocks, regardless of whether an error was thrown or not.

Browser compatibility:
  • The chrome browser supports this feature starting from version 1
  • The edge browser supports this feature starting from version 12
  • The firefox browser supports this feature starting from version 1
  • The safari browser supports this feature starting from version 1
Availability: