chapter 10 : Error handling and Debugging
Debugging is the process of finding errors. It involves a process of deduction. In console help to find where the error is located in js file. JavaScript has 7 different types of errors: Error -Generic error - the other errors are all based upon this error. Syntax Error
- Syntax has not been followed Ref erenceError
- 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