reading-notes

Read: 10 - JS Debugging

Error Handling & Debugging

JavaScript can be hard to learn and everyone makes mistakes when writing it. This chapter will help you learn how to find the errors in your code. It will also teach you how to write scripts that deal with potential errors gracefully.

order of execution (the order in which statements are processed)

Errors Types:

Error Description
EvalError Raised when the eval() functions is used in an incorrect manner.
RangeError Raised when a numeric variable exceeds its allowed range.
ReferenceError Raised when an invalid reference is used.
SyntaxError Raised when a syntax error occurs while parsing JavaScript code.
TypeError Raised when the type of a variable is not as expected.
URIError Raised when the encodeURI() or decodeURI() functions are used in an incorrect manner.

Summary