JavaScript Errors

In JavaScript, to handle different errors we use 4 type of statements: Try, catch, finally and throw.

Code :