ERROR OBJECTS :Error objects can help you find where your mistakes are and browsers have tools to help you read them.
There are seven types of built-in error objects in JavaScript.

HOW TO DEAL WITH ERRORS :there are two things you can do with the errors.
1- DEBUG THE SCRIPT TO FIX ERRORS.
2- HANDLE ERRORS GRACEFULLY.
HOW TO LOOK AT ERRORS IN CHROME : The console will show you when there is an error in your JavaScript. It also displays the line where it became a problem for the interpreter.
To diff erentiate between then types of messages you write to the console, you can use three different met hods. They use various colors and icons to distinguish them:
- conso1e.info() can be used for general information.
- console.warn() can be used for warnings
- console.error() can be used to hold errors
BREAK POINTS:You can pause the execution of a script on any line using breakpoints. then you can check the values stored in variables at that point in time.You can indicate that a breakpoint should be triggered only if a condition that you specify is met. The condition can use existing variabl es.
