Important to exception handling in javascript (JS)

Before understanding exception handling it is important to understand the types of errors.

There are two main types of errors in javascript

  1. Syntax Errors

  2. Runtime Errors