Stack is a data structure that follows a simple rule. Last-in, first-out, or LIFO. In Javascript, Functions are stack on top of each other until the function returns and functions will start popping off the stack.

When an Er ror object is created, it will contain the following properties:
| PROPERTY | DESCRIPTION |
|---|---|
| name | Type of execution |
| message | Description |
| fileNumber | Name of the JavaScript file |
| lineNumber | Line number of error |
There are seven types of built-in error objects in JavaScript. You’ll see them on the next two pages:
| OBJECT | DESCRIPTION |
|---|---|
| Error | Generic error - the other errors are all based upon this error |
| Syntax Error | Syntax has not been followed |
| ReferenceError | Tried to reference a variable that is not declared/within scope |
| TypeError | An unexpected data type that cannot be coerced |
| Range Error | Numbers not in acceptable range |
| URI Error | encodeURI ().decodeURI(),and similar methods used incorrectly |
| EvalError | eva l () function used incorrectly |

The JavaScript console will tell you when there is a problem with a script, where to look for the problem, and what kind of issue it seems to be.
The JavaScript console is just one of several developer tools that are found in all modern browsers.
You can Open Chrome Console as the follwing
1- 
2- 



The try statement lets you test a block of code for errors.
The catch statement lets you handle the error.
The throw statement lets you create custom errors.
